Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/tirpc/rpc/rpc.h
$ cat -n /usr/include/tirpc/rpc/rpc.h 1 /* 2 * Copyright (c) 2009, Sun Microsystems, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * - Redistributions of source code must retain the above copyright notice, 8 * this list of conditions and the following disclaimer. 9 * - Redistributions in binary form must reproduce the above copyright notice, 10 * this list of conditions and the following disclaimer in the documentation 11 * and/or other materials provided with the distribution. 12 * - Neither the name of Sun Microsystems, Inc. nor the names of its 13 * contributors may be used to endorse or promote products derived 14 * from this software without specific prior written permission. 15 * 16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 * POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 /* 30 * rpc.h, Just includes the billions of rpc header files necessary to 31 * do remote procedure calling. 32 * 33 * Copyright (C) 1984, Sun Microsystems, Inc. 34 */ 35 #ifndef _TIRPC_RPC_H 36 #define _TIRPC_RPC_H 37 38 #include
/* some typedefs */ 39 #include
40 #include
41 42 /* external data representation interfaces */ 43 #include
/* generic (de)serializer */ 44 45 /* Client side only authentication */ 46 #include
/* generic authenticator (client side) */ 47 48 /* Client side (mostly) remote procedure call */ 49 #include
/* generic rpc stuff */ 50 51 /* semi-private protocol headers */ 52 #include
/* protocol for rpc messages */ 53 #include
/* protocol for unix style cred */ 54 55 /* 56 * Uncomment-out the next line if you are building the rpc library with 57 * DES Authentication (see the README file in the secure_rpc/ directory). 58 */ 59 #include
/* protocol for des style cred */ 60 61 /* Server side only remote procedure callee */ 62 #include
/* service side authenticator */ 63 #include
/* service manager and multiplexer */ 64 65 /* Portmapper client, server, and protocol headers */ 66 #include
67 #include
68 69 #ifndef _KERNEL 70 #include
/* rpcbind interface functions */ 71 #include
72 #endif 73 #include
74 75 #ifndef UDPMSGSIZE 76 #define UDPMSGSIZE 8800 77 #endif 78 79 #ifdef __cplusplus 80 extern "C" { 81 #endif 82 extern int get_myaddress(struct sockaddr_in *); 83 extern int bindresvport(int, struct sockaddr_in *); 84 extern int registerrpc(int, int, int, char *(*)(char [UDPMSGSIZE]), 85 xdrproc_t, xdrproc_t); 86 extern int callrpc(const char *, int, int, int, xdrproc_t, void *, 87 xdrproc_t , void *); 88 extern int getrpcport(char *, int, int, int); 89 90 char *taddr2uaddr(const struct netconfig *, const struct netbuf *); 91 struct netbuf *uaddr2taddr(const struct netconfig *, const char *); 92 93 struct sockaddr; 94 extern int bindresvport_sa(int, struct sockaddr *); 95 #ifdef __cplusplus 96 } 97 #endif 98 99 /* 100 * The following are not exported interfaces, they are for internal library 101 * and rpcbind use only. Do not use, they may change without notice. 102 */ 103 #ifdef __cplusplus 104 extern "C" { 105 #endif 106 int __rpc_nconf2fd(const struct netconfig *); 107 int __rpc_nconf2fd_flags(const struct netconfig *, int); 108 int __rpc_nconf2sockinfo(const struct netconfig *, struct __rpc_sockinfo *); 109 int __rpc_fd2sockinfo(int, struct __rpc_sockinfo *); 110 u_int __rpc_get_t_size(int, int, int); 111 #ifdef __cplusplus 112 } 113 #endif 114 115 #endif /* !_RPC_RPC_H */
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™