xref: /csrg-svn/lib/librpc/rpc/rpc.h (revision 57881)
145068Smckusick /* @(#)rpc.h	2.4 89/07/11 4.0 RPCSRC; from 1.9 88/02/08 SMI */
245068Smckusick /*
345068Smckusick  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
445068Smckusick  * unrestricted use provided that this legend is included on all tape
545068Smckusick  * media and as a part of the software program in whole or part.  Users
645068Smckusick  * may copy or modify Sun RPC without charge, but are not authorized
745068Smckusick  * to license or distribute it to anyone else except as part of a product or
845068Smckusick  * program developed by the user.
945068Smckusick  *
1045068Smckusick  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
1145068Smckusick  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
1245068Smckusick  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
1345068Smckusick  *
1445068Smckusick  * Sun RPC is provided with no support and without any obligation on the
1545068Smckusick  * part of Sun Microsystems, Inc. to assist in its use, correction,
1645068Smckusick  * modification or enhancement.
1745068Smckusick  *
1845068Smckusick  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
1945068Smckusick  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
2045068Smckusick  * OR ANY PART THEREOF.
2145068Smckusick  *
2245068Smckusick  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
2345068Smckusick  * or profits or other special, indirect and consequential damages, even if
2445068Smckusick  * Sun has been advised of the possibility of such damages.
2545068Smckusick  *
2645068Smckusick  * Sun Microsystems, Inc.
2745068Smckusick  * 2550 Garcia Avenue
2845068Smckusick  * Mountain View, California  94043
2945068Smckusick  */
3045068Smckusick 
3145068Smckusick /*
3245068Smckusick  * rpc.h, Just includes the billions of rpc header files necessary to
3345068Smckusick  * do remote procedure calling.
3445068Smckusick  *
3545068Smckusick  * Copyright (C) 1984, Sun Microsystems, Inc.
3645068Smckusick  */
3745068Smckusick #ifndef __RPC_HEADER__
3845068Smckusick #define __RPC_HEADER__
3945068Smckusick 
4045068Smckusick #include <rpc/types.h>		/* some typedefs */
4145068Smckusick #include <netinet/in.h>
4245068Smckusick 
4345068Smckusick /* external data representation interfaces */
4445068Smckusick #include <rpc/xdr.h>		/* generic (de)serializer */
4545068Smckusick 
4645068Smckusick /* Client side only authentication */
4745068Smckusick #include <rpc/auth.h>		/* generic authenticator (client side) */
4845068Smckusick 
4945068Smckusick /* Client side (mostly) remote procedure call */
5045068Smckusick #include <rpc/clnt.h>		/* generic rpc stuff */
5145068Smckusick 
5245068Smckusick /* semi-private protocol headers */
5345068Smckusick #include <rpc/rpc_msg.h>	/* protocol for rpc messages */
5445068Smckusick #include <rpc/auth_unix.h>	/* protocol for unix style cred */
5545068Smckusick /*
5645068Smckusick  *  Uncomment-out the next line if you are building the rpc library with
5745068Smckusick  *  DES Authentication (see the README file in the secure_rpc/ directory).
5845068Smckusick  */
59*57881Storek /*#include <rpc/auth_des.h>	 * protocol for des style cred */
6045068Smckusick 
6145068Smckusick /* Server side only remote procedure callee */
6245068Smckusick #include <rpc/svc.h>		/* service manager and multiplexer */
6345068Smckusick #include <rpc/svc_auth.h>	/* service side authenticator */
6445068Smckusick 
6545068Smckusick /*
6645068Smckusick  * COMMENT OUT THE NEXT INCLUDE (or add to the #ifndef) IF RUNNING ON
6745068Smckusick  * A VERSION OF UNIX THAT USES SUN'S NFS SOURCE.  These systems will
6845068Smckusick  * already have the structures defined by <rpc/netdb.h> included in <netdb.h>.
6945068Smckusick  */
7045068Smckusick /* routines for parsing /etc/rpc */
7145068Smckusick 
7245107Smckusick struct rpcent {
7345107Smckusick       char    *r_name;        /* name of server for this rpc program */
7445107Smckusick       char    **r_aliases;    /* alias list */
7545107Smckusick       int     r_number;       /* rpc program number */
7645107Smckusick };
7745107Smckusick 
7845107Smckusick struct rpcent *getrpcbyname(), *getrpcbynumber(), *getrpcent();
7945107Smckusick 
8045068Smckusick #endif /* ndef __RPC_HEADER__ */
81