18360efbdSAlfred Perlstein /* $NetBSD: clnt_soc.h,v 1.1 2000/06/02 22:57:55 fvdl Exp $ */ 28360efbdSAlfred Perlstein /* $FreeBSD$ */ 38360efbdSAlfred Perlstein 48360efbdSAlfred Perlstein /* 58360efbdSAlfred Perlstein * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 68360efbdSAlfred Perlstein * unrestricted use provided that this legend is included on all tape 78360efbdSAlfred Perlstein * media and as a part of the software program in whole or part. Users 88360efbdSAlfred Perlstein * may copy or modify Sun RPC without charge, but are not authorized 98360efbdSAlfred Perlstein * to license or distribute it to anyone else except as part of a product or 108360efbdSAlfred Perlstein * program developed by the user. 118360efbdSAlfred Perlstein * 128360efbdSAlfred Perlstein * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 138360efbdSAlfred Perlstein * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR 148360efbdSAlfred Perlstein * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 158360efbdSAlfred Perlstein * 168360efbdSAlfred Perlstein * Sun RPC is provided with no support and without any obligation on the 178360efbdSAlfred Perlstein * part of Sun Microsystems, Inc. to assist in its use, correction, 188360efbdSAlfred Perlstein * modification or enhancement. 198360efbdSAlfred Perlstein * 208360efbdSAlfred Perlstein * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 218360efbdSAlfred Perlstein * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 228360efbdSAlfred Perlstein * OR ANY PART THEREOF. 238360efbdSAlfred Perlstein * 248360efbdSAlfred Perlstein * In no event will Sun Microsystems, Inc. be liable for any lost revenue 258360efbdSAlfred Perlstein * or profits or other special, indirect and consequential damages, even if 268360efbdSAlfred Perlstein * Sun has been advised of the possibility of such damages. 278360efbdSAlfred Perlstein * 288360efbdSAlfred Perlstein * Sun Microsystems, Inc. 298360efbdSAlfred Perlstein * 2550 Garcia Avenue 308360efbdSAlfred Perlstein * Mountain View, California 94043 318360efbdSAlfred Perlstein */ 328360efbdSAlfred Perlstein /* 338360efbdSAlfred Perlstein * Copyright (c) 1984 - 1991 by Sun Microsystems, Inc. 348360efbdSAlfred Perlstein */ 358360efbdSAlfred Perlstein 368360efbdSAlfred Perlstein /* 378360efbdSAlfred Perlstein * clnt.h - Client side remote procedure call interface. 388360efbdSAlfred Perlstein */ 398360efbdSAlfred Perlstein 408360efbdSAlfred Perlstein #ifndef _RPC_CLNT_SOC_H 418360efbdSAlfred Perlstein #define _RPC_CLNT_SOC_H 428360efbdSAlfred Perlstein 438360efbdSAlfred Perlstein /* derived from clnt_soc.h 1.3 88/12/17 SMI */ 448360efbdSAlfred Perlstein 458360efbdSAlfred Perlstein /* 468360efbdSAlfred Perlstein * All the following declarations are only for backward compatibility 478360efbdSAlfred Perlstein * with TS-RPC. 488360efbdSAlfred Perlstein */ 498360efbdSAlfred Perlstein 508360efbdSAlfred Perlstein #include <sys/cdefs.h> 518360efbdSAlfred Perlstein 528360efbdSAlfred Perlstein #define UDPMSGSIZE 8800 /* rpc imposed limit on udp msg size */ 538360efbdSAlfred Perlstein 548360efbdSAlfred Perlstein /* 558360efbdSAlfred Perlstein * TCP based rpc 568360efbdSAlfred Perlstein * CLIENT * 578360efbdSAlfred Perlstein * clnttcp_create(raddr, prog, vers, sockp, sendsz, recvsz) 588360efbdSAlfred Perlstein * struct sockaddr_in *raddr; 598360efbdSAlfred Perlstein * u_long prog; 608360efbdSAlfred Perlstein * u_long version; 618360efbdSAlfred Perlstein * register int *sockp; 628360efbdSAlfred Perlstein * u_int sendsz; 638360efbdSAlfred Perlstein * u_int recvsz; 648360efbdSAlfred Perlstein */ 658360efbdSAlfred Perlstein __BEGIN_DECLS 668360efbdSAlfred Perlstein extern CLIENT *clnttcp_create __P((struct sockaddr_in *, 678360efbdSAlfred Perlstein u_long, 688360efbdSAlfred Perlstein u_long, 698360efbdSAlfred Perlstein int *, 708360efbdSAlfred Perlstein u_int, 718360efbdSAlfred Perlstein u_int)); 728360efbdSAlfred Perlstein __END_DECLS 738360efbdSAlfred Perlstein 748360efbdSAlfred Perlstein /* 758360efbdSAlfred Perlstein * Raw (memory) rpc. 768360efbdSAlfred Perlstein */ 778360efbdSAlfred Perlstein __BEGIN_DECLS 788360efbdSAlfred Perlstein extern CLIENT *clntraw_create __P((u_long, u_long)); 798360efbdSAlfred Perlstein __END_DECLS 808360efbdSAlfred Perlstein 818360efbdSAlfred Perlstein 828360efbdSAlfred Perlstein /* 838360efbdSAlfred Perlstein * UDP based rpc. 848360efbdSAlfred Perlstein * CLIENT * 858360efbdSAlfred Perlstein * clntudp_create(raddr, program, version, wait, sockp) 868360efbdSAlfred Perlstein * struct sockaddr_in *raddr; 878360efbdSAlfred Perlstein * u_long program; 888360efbdSAlfred Perlstein * u_long version; 898360efbdSAlfred Perlstein * struct timeval wait; 908360efbdSAlfred Perlstein * int *sockp; 918360efbdSAlfred Perlstein * 928360efbdSAlfred Perlstein * Same as above, but you specify max packet sizes. 938360efbdSAlfred Perlstein * CLIENT * 948360efbdSAlfred Perlstein * clntudp_bufcreate(raddr, program, version, wait, sockp, sendsz, recvsz) 958360efbdSAlfred Perlstein * struct sockaddr_in *raddr; 968360efbdSAlfred Perlstein * u_long program; 978360efbdSAlfred Perlstein * u_long version; 988360efbdSAlfred Perlstein * struct timeval wait; 998360efbdSAlfred Perlstein * int *sockp; 1008360efbdSAlfred Perlstein * u_int sendsz; 1018360efbdSAlfred Perlstein * u_int recvsz; 1028360efbdSAlfred Perlstein */ 1038360efbdSAlfred Perlstein __BEGIN_DECLS 1048360efbdSAlfred Perlstein extern CLIENT *clntudp_create __P((struct sockaddr_in *, 1058360efbdSAlfred Perlstein u_long, 1068360efbdSAlfred Perlstein u_long, 1078360efbdSAlfred Perlstein struct timeval, 1088360efbdSAlfred Perlstein int *)); 1098360efbdSAlfred Perlstein extern CLIENT *clntudp_bufcreate __P((struct sockaddr_in *, 1108360efbdSAlfred Perlstein u_long, 1118360efbdSAlfred Perlstein u_long, 1128360efbdSAlfred Perlstein struct timeval, 1138360efbdSAlfred Perlstein int *, 1148360efbdSAlfred Perlstein u_int, 1158360efbdSAlfred Perlstein u_int)); 1168360efbdSAlfred Perlstein __END_DECLS 1178360efbdSAlfred Perlstein 1188360efbdSAlfred Perlstein #endif /* _RPC_CLNT_SOC_H */ 119