home *** CD-ROM | disk | FTP | other *** search
- %h{
- /* *
- * *
- * Copyright 1987, 1988, 1989 Netwise, Inc. *
- * All Rights Reserved *
- * This software contains information which is proprietary to and a trade *
- * secret of Netwise, Inc. It is not to be used, reproduced, or disclosed *
- * except as authorized in your license agreement. *
- * *
- * Restricted Rights Legend *
- * Use, duplication, or disclosure by the Government is subject to *
- * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in *
- * Technical Data and Computer Software clause at 252.227-7013, or the *
- * equivalent Government clause for other agencies. *
- * Contractor: Netwise, Inc., Boulder, CO 80301 USA *
- * *
- */
- %}
-
- /*
- * File: persist\common\persist.rpc
- *
- * This example runs in the following environment:
- * NetWare RPC 1.0, NetWare 2.1 or higher, DOS 3.3
- *
- * This is the RPC Specification File for the persist example.
- *
- */
-
- /* Declare connection identifier for procedures without
- * explicit binding declarartions. This connection
- * identifier designates persistent connection with
- * the server.
- */
-
- extern connection_id [bind in out] conn;
-
- /* Declare start procedure so that it takes a server name
- * as a parameter and, therefore, opens a connection with
- * the server. The connection identifier is placed in the
- * global variable conn, so that the identifier can be used
- * by other remote procedures. This is the Persistent Open
- * style of process binding.
- */
-
- int
- start( server_name [bind in] sname)
- {
- extern connection_id [bind out] conn;
- }
-
-
- /* Declare stop procedure so that it uses the the persistent
- * connection. However, because no ouput binding parameter
- * or variable is declared, the connection is closed upon
- * completing the call to the stop procedure. This is the
- * Persistent Close style of process binding.
- */
-
- int
- stop()
- {
- extern connection_id [bind in] conn;
- }
-
- /* Remaining procedures are declared without process binding
- * declarations; therefore, these procedures implicitly use
- * the global variable conn for obtaining the connection
- * identifier designating the persistent connection. This is
- * the Persistent Use style of process binding.
- */
-
- int
- add( int a, int b);
-
- int
- sub( int a, int b);
-