home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / rpc / clnt_soc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  2.6 KB  |  113 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ident    "@(#)/usr/include/rpc/clnt_soc.h.sl 1.1 4.0 12/08/90 64833 AT&T-USL"
  11.  
  12. /* @(#)clnt_soc.h 1.3 88/12/17 SMI     */
  13.  
  14. /*
  15.  *          PROPRIETARY NOTICE (Combined)
  16.  *  
  17.  *  This source code is unpublished proprietary information
  18.  *  constituting, or derived under license from AT&T's Unix(r) System V.
  19.  *  In addition, portions of such source code were derived from Berkeley
  20.  *  4.3 BSD under license from the Regents of the University of
  21.  *  California.
  22.  *  
  23.  *  
  24.  *  
  25.  *          Copyright Notice 
  26.  *  
  27.  *  Notice of copyright on this source code product does not indicate 
  28.  *  publication.
  29.  *  
  30.  *      (c) 1986,1987,1988,1989  Sun Microsystems, Inc.
  31.  *      (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  32.  *                All rights reserved.
  33.  */
  34.  
  35. /*
  36.  * clnt.h - Client side remote procedure call interface.
  37.  *
  38.  * Copyright (C) 1984, Sun Microsystems, Inc.
  39.  */
  40.  
  41. #ifndef _RPC_CLNT_SOC_H
  42. #define _RPC_CLNT_SOC_H
  43.  
  44. /*
  45.  * All the following declarations are only for backward compatibility
  46.  * with SUNOS 4.0.
  47.  */
  48.  
  49. #include <sys/socket.h>
  50. #include <netinet/in.h>
  51.  
  52. #define UDPMSGSIZE    8800    /* rpc imposed limit on udp msg size */
  53.  
  54. /*
  55.  * enum clnt_stat
  56.  * callrpc(host, prognum, versnum, procnum, inproc, in, outproc, out)
  57.  *    char *host;
  58.  *    u_long prognum, versnum, procnum;
  59.  *    xdrproc_t inproc, outproc;
  60.  *    char *in, *out;
  61.  *    char *nettype;
  62.  */
  63. extern int callrpc();
  64.  
  65. /*
  66.  * TCP based rpc
  67.  * CLIENT *
  68.  * clnttcp_create(raddr, prog, vers, fdp, sendsz, recvsz)
  69.  *    struct sockaddr_in *raddr;
  70.  *    u_long prog;
  71.  *    u_long version;
  72.  *    int *fdp;
  73.  *    u_int sendsz;
  74.  *    u_int recvsz;
  75.  */
  76. extern CLIENT *clnttcp_create();
  77.  
  78. /*
  79.  * UDP based rpc.
  80.  * CLIENT *
  81.  * clntudp_create(raddr, program, version, wait, fdp)
  82.  *    struct sockaddr_in *raddr;
  83.  *    u_long program;
  84.  *    u_long version;
  85.  *    struct timeval wait;
  86.  *    int *fdp;
  87.  *
  88.  * Same as above, but you specify max packet sizes.
  89.  * CLIENT *
  90.  * clntudp_bufcreate(raddr, program, version, wait, fdp, sendsz, recvsz)
  91.  *    struct sockaddr_in *raddr;
  92.  *    u_long program;
  93.  *    u_long version;
  94.  *    struct timeval wait;
  95.  *    int *fdp;
  96.  *    u_int sendsz;
  97.  *    u_int recvsz;
  98.  *
  99.  */
  100. extern CLIENT *clntudp_create();
  101. extern CLIENT *clntudp_bufcreate();
  102.  
  103. /*
  104.  * Memory based rpc (for speed check and testing)
  105.  * CLIENT *
  106.  * clntraw_create(prog, vers)
  107.  *    u_long prog;
  108.  *    u_long vers;
  109.  */
  110. extern CLIENT *clntraw_create();
  111.  
  112. #endif /* _RPC_CLNT_SOC_H */
  113.