home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 11 / 11.iso / n / n001 / 2.ddi / EXAMPLES / ASYNC1 / COMMON / ASYNC1.RPC
Encoding:
Text File  |  1989-12-11  |  2.1 KB  |  52 lines

  1. %h{
  2. /*                                                                            *
  3.  *                                                                            *
  4.  *                  Copyright 1987, 1988, 1989 Netwise, Inc.                  *
  5.  *                              All Rights Reserved                           *
  6.  *   This software contains information which is proprietary to and a trade   *
  7.  *   secret of Netwise, Inc. It is not to be used, reproduced, or disclosed   *
  8.  *   except as authorized in your license agreement.                          *
  9.  *                                                                            *
  10.  *                          Restricted Rights Legend                          *
  11.  *   Use, duplication,  or  disclosure  by the  Government  is  subject  to   *
  12.  *   restrictions as set forth in subparagraph (c)(1)(ii) of the Rights  in   *
  13.  *   Technical Data and  Computer Software clause  at 252.227-7013, or  the   *
  14.  *   equivalent Government clause for other agencies.                         *
  15.  *   Contractor: Netwise, Inc., Boulder, CO 80301 USA                         *
  16.  *                                                                            *
  17.  */ 
  18. %}
  19.  
  20. /*
  21.  * File: async1\common\async1.rpc
  22.  *
  23.  * This RPC file runs in the following environment:
  24.  *    NetWare RPC 1.0, NetWare 2.1 or higher, DOS 3.3
  25.  *
  26.  */
  27.  
  28. /* Import asynchronous code using the import statement. */
  29. import "async1_i.rpc";
  30.  
  31. /* This declaration defines an implicit, non-persistent binding.
  32.  * server_name is a predefined binding type (typedef char *server_name).
  33.  */
  34. extern server_name [bind in] sname;
  35.  
  36. /*
  37.  * The following procedures use the global variable sname implicitly
  38.  * for obtaining process binding information.  Additionally, because
  39.  * aynchronous code has been imported, this code is also added to
  40.  * each of the following procedures.
  41.  */
  42.  
  43. /*
  44.  * Note that each of the following procedures must have
  45.  * a parameter called "cli_rpc_handle." This parameter must be declared
  46.  * as a pointer to a character pointer.
  47.  */
  48.  
  49. int add( int a, int b, char **cli_rpc_handle );
  50.  
  51. int sub( int a, int b, char **cli_rpc_handle );
  52.