Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/tirpc/rpc/svc_soc.h
$ cat -n /usr/include/tirpc/rpc/svc_soc.h 1 /* $NetBSD: svc_soc.h,v 1.1 2000/06/02 22:57:57 fvdl Exp $ */ 2 /* $FreeBSD: src/include/rpc/svc_soc.h,v 1.2 2002/03/23 17:24:55 imp Exp $ */ 3 4 /* 5 * Copyright (c) 2009, Sun Microsystems, Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions are met: 10 * - Redistributions of source code must retain the above copyright notice, 11 * this list of conditions and the following disclaimer. 12 * - Redistributions in binary form must reproduce the above copyright notice, 13 * this list of conditions and the following disclaimer in the documentation 14 * and/or other materials provided with the distribution. 15 * - Neither the name of Sun Microsystems, Inc. nor the names of its 16 * contributors may be used to endorse or promote products derived 17 * from this software without specific prior written permission. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGE. 30 */ 31 /* 32 * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc. 33 */ 34 35 /* 36 * svc.h, Server-side remote procedure call interface. 37 */ 38 39 #ifndef _RPC_SVC_SOC_H 40 #define _RPC_SVC_SOC_H 41 42 /* #pragma ident "@(#)svc_soc.h 1.11 94/04/25 SMI" */ 43 /* svc_soc.h 1.8 89/05/01 SMI */ 44 45 /* 46 * All the following declarations are only for backward compatibility 47 * with TS-RPC 48 */ 49 50 /* 51 * Approved way of getting address of caller 52 */ 53 #define svc_getcaller(x) (&(x)->xp_raddr) 54 /* Getting address of a caller using netbuf xp_rtaddr */ 55 #define svc_getcaller_netbuf(x) (&(x)->xp_rtaddr) 56 /* 57 * Service registration 58 * 59 * svc_register(xprt, prog, vers, dispatch, protocol) 60 * SVCXPRT *xprt; 61 * u_long prog; 62 * u_long vers; 63 * void (*dispatch)(); 64 * int protocol; like TCP or UDP, zero means do not register 65 */ 66 #ifdef __cplusplus 67 extern "C" { 68 #endif 69 extern bool_t svc_register(SVCXPRT *, u_long, u_long, 70 void (*)(struct svc_req *, SVCXPRT *), int); 71 #ifdef __cplusplus 72 } 73 #endif 74 75 /* 76 * Service un-registration 77 * 78 * svc_unregister(prog, vers) 79 * u_long prog; 80 * u_long vers; 81 */ 82 #ifdef __cplusplus 83 extern "C" { 84 #endif 85 extern void svc_unregister(u_long, u_long); 86 #ifdef __cplusplus 87 } 88 #endif 89 90 91 /* 92 * Memory based rpc for testing and timing. 93 */ 94 #ifdef __cplusplus 95 extern "C" { 96 #endif 97 extern SVCXPRT *svcraw_create(void); 98 #ifdef __cplusplus 99 } 100 #endif 101 102 103 /* 104 * Udp based rpc. 105 */ 106 #ifdef __cplusplus 107 extern "C" { 108 #endif 109 extern SVCXPRT *svcudp_create(int); 110 extern SVCXPRT *svcudp_bufcreate(int, u_int, u_int); 111 extern int svcudp_enablecache(SVCXPRT *, u_long); 112 extern SVCXPRT *svcudp6_create(int); 113 extern SVCXPRT *svcudp6_bufcreate(int, u_int, u_int); 114 #ifdef __cplusplus 115 } 116 #endif 117 118 119 /* 120 * Tcp based rpc. 121 */ 122 #ifdef __cplusplus 123 extern "C" { 124 #endif 125 extern SVCXPRT *svctcp_create(int, u_int, u_int); 126 extern SVCXPRT *svctcp6_create(int, u_int, u_int); 127 #ifdef __cplusplus 128 } 129 #endif 130 131 /* 132 * Fd based rpc. 133 */ 134 #ifdef __cplusplus 135 extern "C" { 136 #endif 137 extern SVCXPRT *svcfd_create(int, u_int, u_int); 138 #ifdef __cplusplus 139 } 140 #endif 141 142 #endif /* !_RPC_SVC_SOC_H */
Welcome to MyWebUniversity on April 15, 2025.
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™