|
||||
File indexing completed on 2025-01-30 10:25:05
0001 /* $NetBSD: clnt_soc.h,v 1.1 2000/06/02 22:57:55 fvdl Exp $ */ 0002 /* $FreeBSD: src/include/rpc/clnt_soc.h,v 1.2 2002/03/23 17:24:55 imp Exp $ */ 0003 0004 /* 0005 * Copyright (c) 2009, Sun Microsystems, Inc. 0006 * All rights reserved. 0007 * 0008 * Redistribution and use in source and binary forms, with or without 0009 * modification, are permitted provided that the following conditions are met: 0010 * - Redistributions of source code must retain the above copyright notice, 0011 * this list of conditions and the following disclaimer. 0012 * - Redistributions in binary form must reproduce the above copyright notice, 0013 * this list of conditions and the following disclaimer in the documentation 0014 * and/or other materials provided with the distribution. 0015 * - Neither the name of Sun Microsystems, Inc. nor the names of its 0016 * contributors may be used to endorse or promote products derived 0017 * from this software without specific prior written permission. 0018 * 0019 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 0020 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 0021 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 0022 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 0023 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 0024 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 0025 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 0026 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 0027 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 0028 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 0029 * POSSIBILITY OF SUCH DAMAGE. 0030 */ 0031 /* 0032 * Copyright (c) 1984 - 1991 by Sun Microsystems, Inc. 0033 */ 0034 0035 /* 0036 * clnt.h - Client side remote procedure call interface. 0037 */ 0038 0039 #ifndef _RPC_CLNT_SOC_H 0040 #define _RPC_CLNT_SOC_H 0041 0042 /* derived from clnt_soc.h 1.3 88/12/17 SMI */ 0043 0044 /* 0045 * All the following declarations are only for backward compatibility 0046 * with TS-RPC. 0047 */ 0048 0049 0050 #define UDPMSGSIZE 8800 /* rpc imposed limit on udp msg size */ 0051 0052 /* 0053 * TCP based rpc 0054 * CLIENT * 0055 * clnttcp_create(raddr, prog, vers, sockp, sendsz, recvsz) 0056 * struct sockaddr_in *raddr; 0057 * u_long prog; 0058 * u_long version; 0059 * register int *sockp; 0060 * u_int sendsz; 0061 * u_int recvsz; 0062 */ 0063 #ifdef __cplusplus 0064 extern "C" { 0065 #endif 0066 extern CLIENT *clnttcp_create(struct sockaddr_in *, u_long, u_long, int *, 0067 u_int, u_int); 0068 #ifdef __cplusplus 0069 } 0070 #endif 0071 0072 /* 0073 * Raw (memory) rpc. 0074 */ 0075 #ifdef __cplusplus 0076 extern "C" { 0077 #endif 0078 extern CLIENT *clntraw_create(u_long, u_long); 0079 #ifdef __cplusplus 0080 } 0081 #endif 0082 0083 0084 /* 0085 IPv6 socket version 0086 */ 0087 #ifdef INET6 0088 #ifdef __cplusplus 0089 extern "C" { 0090 #endif 0091 extern CLIENT *clnttcp6_create(struct sockaddr_in6 *, u_long, u_long, int *, 0092 u_int, u_int); 0093 #ifdef __cplusplus 0094 } 0095 #endif 0096 #endif 0097 0098 /* 0099 * UDP based rpc. 0100 * CLIENT * 0101 * clntudp_create(raddr, program, version, wait, sockp) 0102 * struct sockaddr_in *raddr; 0103 * u_long program; 0104 * u_long version; 0105 * struct timeval wait; 0106 * int *sockp; 0107 * 0108 * Same as above, but you specify max packet sizes. 0109 * CLIENT * 0110 * clntudp_bufcreate(raddr, program, version, wait, sockp, sendsz, recvsz) 0111 * struct sockaddr_in *raddr; 0112 * u_long program; 0113 * u_long version; 0114 * struct timeval wait; 0115 * int *sockp; 0116 * u_int sendsz; 0117 * u_int recvsz; 0118 */ 0119 #ifdef __cplusplus 0120 extern "C" { 0121 #endif 0122 extern CLIENT *clntudp_create(struct sockaddr_in *, u_long, u_long, 0123 struct timeval, int *); 0124 extern CLIENT *clntudp_bufcreate(struct sockaddr_in *, u_long, u_long, 0125 struct timeval, int *, u_int, u_int); 0126 #ifdef INET6 0127 extern CLIENT *clntudp6_create(struct sockaddr_in6 *, u_long, u_long, 0128 struct timeval, int *); 0129 extern CLIENT *clntudp6_bufcreate(struct sockaddr_in6 *, u_long, u_long, 0130 struct timeval, int *, u_int, u_int); 0131 #endif 0132 #ifdef __cplusplus 0133 } 0134 #endif 0135 0136 0137 #endif /* _RPC_CLNT_SOC_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |