11.5Sdholland/*	$NetBSD: clnt_soc.h,v 1.5 2016/01/23 02:34:09 dholland Exp $	*/
21.1Sfvdl
31.1Sfvdl/*
41.1Sfvdl * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
51.1Sfvdl * unrestricted use provided that this legend is included on all tape
61.1Sfvdl * media and as a part of the software program in whole or part.  Users
71.1Sfvdl * may copy or modify Sun RPC without charge, but are not authorized
81.1Sfvdl * to license or distribute it to anyone else except as part of a product or
91.1Sfvdl * program developed by the user.
101.1Sfvdl *
111.1Sfvdl * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
121.1Sfvdl * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
131.1Sfvdl * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
141.1Sfvdl *
151.1Sfvdl * Sun RPC is provided with no support and without any obligation on the
161.1Sfvdl * part of Sun Microsystems, Inc. to assist in its use, correction,
171.1Sfvdl * modification or enhancement.
181.1Sfvdl *
191.1Sfvdl * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
201.1Sfvdl * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
211.1Sfvdl * OR ANY PART THEREOF.
221.1Sfvdl *
231.1Sfvdl * In no event will Sun Microsystems, Inc. be liable for any lost revenue
241.1Sfvdl * or profits or other special, indirect and consequential damages, even if
251.1Sfvdl * Sun has been advised of the possibility of such damages.
261.1Sfvdl *
271.1Sfvdl * Sun Microsystems, Inc.
281.1Sfvdl * 2550 Garcia Avenue
291.1Sfvdl * Mountain View, California  94043
301.1Sfvdl */
311.1Sfvdl/*
321.1Sfvdl * Copyright (c) 1984 - 1991 by Sun Microsystems, Inc.
331.1Sfvdl */
341.1Sfvdl
351.1Sfvdl/*
361.1Sfvdl * clnt.h - Client side remote procedure call interface.
371.1Sfvdl */
381.1Sfvdl
391.1Sfvdl#ifndef _RPC_CLNT_SOC_H
401.1Sfvdl#define _RPC_CLNT_SOC_H
411.1Sfvdl
421.1Sfvdl/* derived from clnt_soc.h 1.3 88/12/17 SMI     */
431.1Sfvdl
441.1Sfvdl/*
451.1Sfvdl * All the following declarations are only for backward compatibility
461.1Sfvdl * with TS-RPC.
471.1Sfvdl */
481.1Sfvdl
491.1Sfvdl#include <sys/cdefs.h>
501.1Sfvdl
511.1Sfvdl#define UDPMSGSIZE      8800    /* rpc imposed limit on udp msg size */
521.1Sfvdl
531.1Sfvdl/*
541.1Sfvdl * TCP based rpc
551.1Sfvdl * CLIENT *
561.1Sfvdl * clnttcp_create(raddr, prog, vers, sockp, sendsz, recvsz)
571.1Sfvdl *	struct sockaddr_in *raddr;
581.4Sdholland *	unsigned long prog;
591.4Sdholland *	unsigned long version;
601.3Sperry *	int *sockp;
611.4Sdholland *	unsigned sendsz;
621.4Sdholland *	unsigned recvsz;
631.1Sfvdl */
641.1Sfvdl__BEGIN_DECLS
651.2Sperryextern CLIENT *clnttcp_create(struct sockaddr_in *,
661.4Sdholland				unsigned long,
671.4Sdholland				unsigned long,
681.2Sperry				int *,
691.5Sdholland				unsigned int,
701.5Sdholland				unsigned int);
711.1Sfvdl__END_DECLS
721.1Sfvdl
731.1Sfvdl/*
741.1Sfvdl * Raw (memory) rpc.
751.1Sfvdl */
761.1Sfvdl__BEGIN_DECLS
771.4Sdhollandextern CLIENT *clntraw_create  (unsigned long, unsigned long);
781.1Sfvdl__END_DECLS
791.1Sfvdl
801.1Sfvdl
811.1Sfvdl/*
821.1Sfvdl * UDP based rpc.
831.1Sfvdl * CLIENT *
841.1Sfvdl * clntudp_create(raddr, program, version, wait, sockp)
851.1Sfvdl *	struct sockaddr_in *raddr;
861.4Sdholland *	unsigned long program;
871.4Sdholland *	unsigned long version;
881.1Sfvdl *	struct timeval wait;
891.1Sfvdl *	int *sockp;
901.1Sfvdl *
911.1Sfvdl * Same as above, but you specify max packet sizes.
921.1Sfvdl * CLIENT *
931.1Sfvdl * clntudp_bufcreate(raddr, program, version, wait, sockp, sendsz, recvsz)
941.1Sfvdl *	struct sockaddr_in *raddr;
951.4Sdholland *	unsigned long program;
961.4Sdholland *	unsigned long version;
971.1Sfvdl *	struct timeval wait;
981.1Sfvdl *	int *sockp;
991.4Sdholland *	unsigned sendsz;
1001.4Sdholland *	unsigned recvsz;
1011.1Sfvdl */
1021.1Sfvdl__BEGIN_DECLS
1031.2Sperryextern CLIENT *clntudp_create(struct sockaddr_in *,
1041.4Sdholland				unsigned long,
1051.4Sdholland				unsigned long,
1061.2Sperry				struct timeval,
1071.2Sperry				int *);
1081.2Sperryextern CLIENT *clntudp_bufcreate(struct sockaddr_in *,
1091.4Sdholland				     unsigned long,
1101.4Sdholland				     unsigned long,
1111.1Sfvdl				     struct timeval,
1121.1Sfvdl				     int *,
1131.5Sdholland				     unsigned int,
1141.5Sdholland				     unsigned int);
1151.1Sfvdl__END_DECLS
1161.1Sfvdl
1171.1Sfvdl#endif /* _RPC_CLNT_SOC_H */
118