rpc.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:3k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* rpc.h - remote procedure call header */
  2. /* Copyright 1984-1992 Wind River Systems, Inc. */
  3. /*
  4.  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  5.  * unrestricted use provided that this legend is included on all tape
  6.  * media and as a part of the software program in whole or part.  Users
  7.  * may copy or modify Sun RPC without charge, but are not authorized
  8.  * to license or distribute it to anyone else except as part of a product or
  9.  * program developed by the user.
  10.  *
  11.  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  12.  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  13.  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  14.  *
  15.  * Sun RPC is provided with no support and without any obligation on the
  16.  * part of Sun Microsystems, Inc. to assist in its use, correction,
  17.  * modification or enhancement.
  18.  *
  19.  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  20.  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  21.  * OR ANY PART THEREOF.
  22.  *
  23.  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  24.  * or profits or other special, indirect and consequential damages, even if
  25.  * Sun has been advised of the possibility of such damages.
  26.  *
  27.  * Sun Microsystems, Inc.
  28.  * 2550 Garcia Avenue
  29.  * Mountain View, California  94043
  30.  */
  31. /* @(#)rpc.h 1.1 86/02/03 SMI */
  32. /*
  33.  * rpc.h, Just includes the billions of rpc header files necessary to
  34.  * do remote procedure calling.
  35.  *
  36.  * Copyright (C) 1984, Sun Microsystems, Inc.
  37.  */
  38. /*
  39. modification history
  40. --------------------
  41. 01h,22sep92,rrr  added support for c++
  42. 01g,26may92,rrr  the tree shuffle
  43.   -changed includes to have absolute path from h/
  44. 01f,19nov91,rrr  shut up some ansi warnings.
  45. 01e,04oct91,rrr  passed through the ansification filter
  46.   -changed includes to have absolute path from h/
  47.   -fixed #else and #endif
  48.   -changed copyright notice
  49. 01d,05oct90,shl  added copyright notice.
  50. 01c,26oct89,hjb  upgraded to release 4.0 and changed __RPC_HEADER__ to
  51.  INCrpch.
  52. 01b,22jun88,dnw  added __RPC_HEADER__ test to prevent multiple includes.
  53. */
  54. #ifndef __INCrpch
  55. #define __INCrpch
  56. #ifdef __cplusplus
  57. extern "C" {
  58. #endif
  59. #include "rpc/rpctypes.h" /* some typedefs */
  60. #include "netinet/in.h"
  61. /* external data representation interfaces */
  62. #include "rpc/xdr.h" /* generic (de)serializer */
  63. /* Client side only authentication */
  64. #include "rpc/auth.h" /* generic authenticator (client side) */
  65. /* Client side (mostly) remote procedure call */
  66. #include "rpc/clnt.h" /* generic rpc stuff */
  67. /* semi-private protocol headers */
  68. #include "rpc/rpc_msg.h" /* protocol for rpc messages */
  69. #include "rpc/auth_unix.h" /* protocol for unix style cred */
  70. /*
  71.  * uncomment-out the next line if you are building the rpc library with
  72.  * DES authentication (see the README file in the secure_rpc/ directory).
  73.  */
  74. /* #include "auth_des.h" */ /* 4.0 */
  75. /* Server side only remote procedure callee */
  76. #include "rpc/svc.h" /* service manager and multiplexer */
  77. #include "rpc/svc_auth.h" /* service side authenticator */
  78. /*
  79.  * comment out the next include if the running on sun OS or on a version
  80.  * of Unix based on NFSSRC.  These systems will already have the structures
  81.  * defined by "rpcnetdb.h" included in "netdb.h"
  82.  *
  83.  * VxWorks doesn't support this.
  84.  */
  85. /* routines for parsing /etc/rpc */ /* 4.0 */
  86. /* #include "rpcnetdb.h" */ /* structures and routines to parse /etc/rpc */
  87. #ifdef __cplusplus
  88. }
  89. #endif
  90. #endif /* __INCrpch */