clnt.h revision 74879
174462Salfred/* $NetBSD: clnt.h,v 1.14 2000/06/02 22:57:55 fvdl Exp $ */ 274462Salfred 31839Swollman/* 41839Swollman * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 51839Swollman * unrestricted use provided that this legend is included on all tape 61839Swollman * media and as a part of the software program in whole or part. Users 71839Swollman * may copy or modify Sun RPC without charge, but are not authorized 81839Swollman * to license or distribute it to anyone else except as part of a product or 91839Swollman * program developed by the user. 108858Srgrimes * 111839Swollman * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 1213771Smpp * WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 131839Swollman * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 148858Srgrimes * 151839Swollman * Sun RPC is provided with no support and without any obligation on the 161839Swollman * part of Sun Microsystems, Inc. to assist in its use, correction, 171839Swollman * modification or enhancement. 188858Srgrimes * 191839Swollman * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 201839Swollman * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 211839Swollman * OR ANY PART THEREOF. 228858Srgrimes * 231839Swollman * In no event will Sun Microsystems, Inc. be liable for any lost revenue 241839Swollman * or profits or other special, indirect and consequential damages, even if 251839Swollman * Sun has been advised of the possibility of such damages. 268858Srgrimes * 271839Swollman * Sun Microsystems, Inc. 281839Swollman * 2550 Garcia Avenue 291839Swollman * Mountain View, California 94043 301903Swollman * 3174462Salfred * from: @(#)clnt.h 1.31 94/04/29 SMI 321903Swollman * from: @(#)clnt.h 2.1 88/07/29 4.0 RPCSRC 3350473Speter * $FreeBSD: head/include/rpc/clnt.h 74879 2001-03-27 21:27:33Z wpaul $ 341839Swollman */ 351839Swollman 361839Swollman/* 371839Swollman * clnt.h - Client side remote procedure call interface. 381839Swollman * 391839Swollman * Copyright (C) 1984, Sun Microsystems, Inc. 401839Swollman */ 411839Swollman 421903Swollman#ifndef _RPC_CLNT_H_ 431903Swollman#define _RPC_CLNT_H_ 4474462Salfred#include <rpc/clnt_stat.h> 451903Swollman#include <sys/cdefs.h> 4674462Salfred#include <netconfig.h> 4726211Swpaul#include <sys/un.h> 481839Swollman 491839Swollman/* 5074462Salfred * Well-known IPV6 RPC broadcast address. 511839Swollman */ 5274462Salfred#define RPCB_MULTICAST_ADDR "ff02::202" 531839Swollman 5474462Salfred/* 5574462Salfred * the following errors are in general unrecoverable. The caller 5674462Salfred * should give up rather than retry. 5774462Salfred */ 5874462Salfred#define IS_UNRECOVERABLE_RPC(s) (((s) == RPC_AUTHERROR) || \ 5974462Salfred ((s) == RPC_CANTENCODEARGS) || \ 6074462Salfred ((s) == RPC_CANTDECODERES) || \ 6174462Salfred ((s) == RPC_VERSMISMATCH) || \ 6274462Salfred ((s) == RPC_PROCUNAVAIL) || \ 6374462Salfred ((s) == RPC_PROGUNAVAIL) || \ 6474462Salfred ((s) == RPC_PROGVERSMISMATCH) || \ 6574462Salfred ((s) == RPC_CANTDECODEARGS)) 661839Swollman 671839Swollman/* 681839Swollman * Error info. 691839Swollman */ 701839Swollmanstruct rpc_err { 711839Swollman enum clnt_stat re_status; 721839Swollman union { 7313771Smpp int RE_errno; /* related system error */ 741839Swollman enum auth_stat RE_why; /* why the auth error occurred */ 751839Swollman struct { 7674462Salfred rpcvers_t low; /* lowest version supported */ 7774462Salfred rpcvers_t high; /* highest version supported */ 781839Swollman } RE_vers; 791839Swollman struct { /* maybe meaningful if RPC_FAILED */ 8021059Speter int32_t s1; 8121059Speter int32_t s2; 821839Swollman } RE_lb; /* life boot & debugging only */ 831839Swollman } ru; 841839Swollman#define re_errno ru.RE_errno 851839Swollman#define re_why ru.RE_why 861839Swollman#define re_vers ru.RE_vers 871839Swollman#define re_lb ru.RE_lb 881839Swollman}; 891839Swollman 901839Swollman 911839Swollman/* 921839Swollman * Client rpc handle. 9374462Salfred * Created by individual implementations 941839Swollman * Client is responsible for initializing auth, see e.g. auth_none.c. 951839Swollman */ 9621059Spetertypedef struct __rpc_client { 971839Swollman AUTH *cl_auth; /* authenticator */ 981839Swollman struct clnt_ops { 9921059Speter /* call remote procedure */ 10021059Speter enum clnt_stat (*cl_call) __P((struct __rpc_client *, 10174462Salfred rpcproc_t, xdrproc_t, caddr_t, xdrproc_t, 10221059Speter caddr_t, struct timeval)); 10321059Speter /* abort a call */ 10421059Speter void (*cl_abort) __P((struct __rpc_client *)); 10521059Speter /* get specific error code */ 10621059Speter void (*cl_geterr) __P((struct __rpc_client *, 10721059Speter struct rpc_err *)); 10821059Speter /* frees results */ 10921059Speter bool_t (*cl_freeres) __P((struct __rpc_client *, 11021059Speter xdrproc_t, caddr_t)); 11121059Speter /* destroy this structure */ 11221059Speter void (*cl_destroy) __P((struct __rpc_client *)); 11321059Speter /* the ioctl() of rpc */ 11421059Speter bool_t (*cl_control) __P((struct __rpc_client *, u_int, 11574462Salfred char *)); 1161839Swollman } *cl_ops; 11774462Salfred void *cl_private; /* private stuff */ 11874462Salfred char *cl_netid; /* network token */ 11974462Salfred char *cl_tp; /* device name */ 1201839Swollman} CLIENT; 1211839Swollman 1221839Swollman 1231839Swollman/* 12474462Salfred * Timers used for the pseudo-transport protocol when using datagrams 12574462Salfred */ 12674462Salfredstruct rpc_timers { 12774462Salfred u_short rt_srtt; /* smoothed round-trip time */ 12874462Salfred u_short rt_deviate; /* estimated deviation */ 12974462Salfred u_long rt_rtxcur; /* current (backed-off) rto */ 13074462Salfred}; 13174462Salfred 13274462Salfred/* 13374462Salfred * Feedback values used for possible congestion and rate control 13474462Salfred */ 13574462Salfred#define FEEDBACK_REXMIT1 1 /* first retransmit */ 13674462Salfred#define FEEDBACK_OK 2 /* no retransmits */ 13774462Salfred 13874462Salfred/* Used to set version of portmapper used in broadcast */ 13974462Salfred 14074462Salfred#define CLCR_SET_LOWVERS 3 14174462Salfred#define CLCR_GET_LOWVERS 4 14274462Salfred 14374462Salfred#define RPCSMALLMSGSIZE 400 /* a more reasonable packet size */ 14474462Salfred 14574462Salfred/* 1461839Swollman * client side rpc interface ops 1471839Swollman * 1481839Swollman * Parameter types are: 1491839Swollman * 1501839Swollman */ 1511839Swollman 1521839Swollman/* 1531839Swollman * enum clnt_stat 1541839Swollman * CLNT_CALL(rh, proc, xargs, argsp, xres, resp, timeout) 1551839Swollman * CLIENT *rh; 15674462Salfred * rpcproc_t proc; 1571839Swollman * xdrproc_t xargs; 1581839Swollman * caddr_t argsp; 1591839Swollman * xdrproc_t xres; 1601839Swollman * caddr_t resp; 1611839Swollman * struct timeval timeout; 1621839Swollman */ 16374462Salfred#define CLNT_CALL(rh, proc, xargs, argsp, xres, resp, secs) \ 16474462Salfred ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \ 16574462Salfred (caddr_t)(void *)argsp, xres, (caddr_t)(void *)resp, secs)) 16674462Salfred#define clnt_call(rh, proc, xargs, argsp, xres, resp, secs) \ 16774462Salfred ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \ 16874462Salfred (caddr_t)(void *)argsp, xres, (caddr_t)(void *)resp, secs)) 1691839Swollman 1701839Swollman/* 1711839Swollman * void 1721839Swollman * CLNT_ABORT(rh); 1731839Swollman * CLIENT *rh; 1741839Swollman */ 1751839Swollman#define CLNT_ABORT(rh) ((*(rh)->cl_ops->cl_abort)(rh)) 1761839Swollman#define clnt_abort(rh) ((*(rh)->cl_ops->cl_abort)(rh)) 1771839Swollman 1781839Swollman/* 1791839Swollman * struct rpc_err 1801839Swollman * CLNT_GETERR(rh); 1811839Swollman * CLIENT *rh; 1821839Swollman */ 1831839Swollman#define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) 1841839Swollman#define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) 1851839Swollman 1861839Swollman 1871839Swollman/* 1881839Swollman * bool_t 1891839Swollman * CLNT_FREERES(rh, xres, resp); 1901839Swollman * CLIENT *rh; 1911839Swollman * xdrproc_t xres; 1921839Swollman * caddr_t resp; 1931839Swollman */ 1941839Swollman#define CLNT_FREERES(rh,xres,resp) ((*(rh)->cl_ops->cl_freeres)(rh,xres,resp)) 1951839Swollman#define clnt_freeres(rh,xres,resp) ((*(rh)->cl_ops->cl_freeres)(rh,xres,resp)) 1961839Swollman 1971839Swollman/* 1981839Swollman * bool_t 1991839Swollman * CLNT_CONTROL(cl, request, info) 2001839Swollman * CLIENT *cl; 2011839Swollman * u_int request; 2021839Swollman * char *info; 2031839Swollman */ 2041839Swollman#define CLNT_CONTROL(cl,rq,in) ((*(cl)->cl_ops->cl_control)(cl,rq,in)) 2051839Swollman#define clnt_control(cl,rq,in) ((*(cl)->cl_ops->cl_control)(cl,rq,in)) 2061839Swollman 2071839Swollman/* 20874462Salfred * control operations that apply to both udp and tcp transports 2091839Swollman */ 21074462Salfred#define CLSET_TIMEOUT 1 /* set timeout (timeval) */ 21174462Salfred#define CLGET_TIMEOUT 2 /* get timeout (timeval) */ 21274462Salfred#define CLGET_SERVER_ADDR 3 /* get server's address (sockaddr) */ 21374462Salfred#define CLGET_FD 6 /* get connections file descriptor */ 21474462Salfred#define CLGET_SVC_ADDR 7 /* get server's address (netbuf) */ 21574462Salfred#define CLSET_FD_CLOSE 8 /* close fd while clnt_destroy */ 21674462Salfred#define CLSET_FD_NCLOSE 9 /* Do not close fd while clnt_destroy */ 21774462Salfred#define CLGET_XID 10 /* Get xid */ 21874462Salfred#define CLSET_XID 11 /* Set xid */ 21974462Salfred#define CLGET_VERS 12 /* Get version number */ 22074462Salfred#define CLSET_VERS 13 /* Set version number */ 22174462Salfred#define CLGET_PROG 14 /* Get program number */ 22274462Salfred#define CLSET_PROG 15 /* Set program number */ 22374462Salfred#define CLSET_SVC_ADDR 16 /* get server's address (netbuf) */ 22474462Salfred#define CLSET_PUSH_TIMOD 17 /* push timod if not already present */ 22574462Salfred#define CLSET_POP_TIMOD 18 /* pop timod */ 2261839Swollman/* 22774462Salfred * Connectionless only control operations 2281839Swollman */ 2291839Swollman#define CLSET_RETRY_TIMEOUT 4 /* set retry timeout (timeval) */ 2301839Swollman#define CLGET_RETRY_TIMEOUT 5 /* get retry timeout (timeval) */ 23174879Swpaul#define CLSET_ASYNC 19 2321839Swollman 2331839Swollman/* 2341839Swollman * void 2351839Swollman * CLNT_DESTROY(rh); 2361839Swollman * CLIENT *rh; 2371839Swollman */ 2381839Swollman#define CLNT_DESTROY(rh) ((*(rh)->cl_ops->cl_destroy)(rh)) 2391839Swollman#define clnt_destroy(rh) ((*(rh)->cl_ops->cl_destroy)(rh)) 2401839Swollman 2411839Swollman 2421839Swollman/* 24313771Smpp * RPCTEST is a test program which is accessible on every rpc 2441839Swollman * transport/port. It is used for testing, performance evaluation, 2451839Swollman * and network administration. 2461839Swollman */ 2471839Swollman 24874462Salfred#define RPCTEST_PROGRAM ((rpcprog_t)1) 24974462Salfred#define RPCTEST_VERSION ((rpcvers_t)1) 25074462Salfred#define RPCTEST_NULL_PROC ((rpcproc_t)2) 25174462Salfred#define RPCTEST_NULL_BATCH_PROC ((rpcproc_t)3) 2521839Swollman 2531839Swollman/* 2541839Swollman * By convention, procedure 0 takes null arguments and returns them 2551839Swollman */ 2561839Swollman 25774462Salfred#define NULLPROC ((rpcproc_t)0) 2581839Swollman 2591839Swollman/* 2601839Swollman * Below are the client handle creation routines for the various 2618858Srgrimes * implementations of client side rpc. They can return NULL if a 2621839Swollman * creation failure occurs. 2631839Swollman */ 2641839Swollman 2651839Swollman/* 26674462Salfred * Generic client creation routine. Supported protocols are those that 26774462Salfred * belong to the nettype namespace (/etc/netconfig). 2681839Swollman * CLIENT * 26974462Salfred * clnt_create(host, prog, vers, prot); 27074462Salfred * const char *host; -- hostname 27174462Salfred * const rpcprog_t prog; -- program number 27274462Salfred * const rpcvers_t vers; -- version number 27374462Salfred * const char *prot; -- protocol 2741839Swollman */ 2751903Swollman__BEGIN_DECLS 27674462Salfredextern CLIENT *clnt_create __P((const char *, const rpcprog_t, const rpcvers_t, 27774462Salfred const char *)); 27874462Salfred/* 27974462Salfred * 28074462Salfred * const char *hostname; -- hostname 28174462Salfred * const rpcprog_t prog; -- program number 28274462Salfred * const rpcvers_t vers; -- version number 28374462Salfred * const char *nettype; -- network type 28474462Salfred */ 2851839Swollman 2861839Swollman/* 28774462Salfred * Generic client creation routine. Supported protocols are which belong 28874462Salfred * to the nettype name space. 2891839Swollman */ 29074462Salfredextern CLIENT *clnt_create_vers __P((const char *, const rpcprog_t, rpcvers_t *, 29174462Salfred const rpcvers_t, const rpcvers_t, 29274462Salfred const char *)); 29374462Salfred/* 29474462Salfred * const char *host; -- hostname 29574462Salfred * const rpcprog_t prog; -- program number 29674462Salfred * rpcvers_t *vers_out; -- servers highest available version 29774462Salfred * const rpcvers_t vers_low; -- low version number 29874462Salfred * const rpcvers_t vers_high; -- high version number 29974462Salfred * const char *nettype; -- network type 30074462Salfred */ 3011839Swollman 3021839Swollman 3031839Swollman/* 30474462Salfred * Generic client creation routine. It takes a netconfig structure 30574462Salfred * instead of nettype 3061839Swollman */ 30774462Salfredextern CLIENT *clnt_tp_create __P((const char *, const rpcprog_t, 30874462Salfred const rpcvers_t, const struct netconfig *)); 30974462Salfred/* 31074462Salfred * const char *hostname; -- hostname 31174462Salfred * const rpcprog_t prog; -- program number 31274462Salfred * const rpcvers_t vers; -- version number 31374462Salfred * const struct netconfig *netconf; -- network config structure 31474462Salfred */ 3151839Swollman 31674462Salfred/* 31774462Salfred * Generic TLI create routine. Only provided for compatibility. 31874462Salfred */ 3191903Swollman 32074462Salfredextern CLIENT *clnt_tli_create __P((const int, const struct netconfig *, 32174462Salfred const struct netbuf *, const rpcprog_t, 32274462Salfred const rpcvers_t, const u_int, const u_int)); 3231839Swollman/* 32474462Salfred * const register int fd; -- fd 32574462Salfred * const struct netconfig *nconf; -- netconfig structure 32674462Salfred * const struct netbuf *svcaddr; -- servers address 32774462Salfred * const u_long prog; -- program number 32874462Salfred * const u_long vers; -- version number 32974462Salfred * const u_int sendsz; -- send size 33074462Salfred * const u_int recvsz; -- recv size 3311839Swollman */ 3321839Swollman 33374462Salfred/* 33474462Salfred * Low level clnt create routine for connectionful transports, e.g. tcp. 33574462Salfred */ 33674462Salfredextern CLIENT *clnt_vc_create __P((const int, const struct netbuf *, 33774462Salfred const rpcprog_t, const rpcvers_t, 33874462Salfred const u_int, const u_int)); 33974462Salfred/* 34074462Salfred * const int fd; -- open file descriptor 34174462Salfred * const struct netbuf *svcaddr; -- servers address 34274462Salfred * const rpcprog_t prog; -- program number 34374462Salfred * const rpcvers_t vers; -- version number 34474462Salfred * const u_int sendsz; -- buffer recv size 34574462Salfred * const u_int recvsz; -- buffer send size 34674462Salfred */ 3471903Swollman 3481839Swollman/* 34974462Salfred * Low level clnt create routine for connectionless transports, e.g. udp. 35074462Salfred */ 35174462Salfredextern CLIENT *clnt_dg_create __P((const int, const struct netbuf *, 35274462Salfred const rpcprog_t, const rpcvers_t, 35374462Salfred const u_int, const u_int)); 35474462Salfred/* 35574462Salfred * const int fd; -- open file descriptor 35674462Salfred * const struct netbuf *svcaddr; -- servers address 35774462Salfred * const rpcprog_t program; -- program number 35874462Salfred * const rpcvers_t version; -- version number 35974462Salfred * const u_int sendsz; -- buffer recv size 36074462Salfred * const u_int recvsz; -- buffer send size 36174462Salfred */ 36274462Salfred 36374462Salfred/* 36474462Salfred * Memory based rpc (for speed check and testing) 36526211Swpaul * CLIENT * 36674462Salfred * clnt_raw_create(prog, vers) 36726211Swpaul * u_long prog; 36874462Salfred * u_long vers; 36926211Swpaul */ 37074462Salfredextern CLIENT *clnt_raw_create __P((rpcprog_t, rpcvers_t)); 37174462Salfred 37226211Swpaul__END_DECLS 37326211Swpaul 37426211Swpaul 37526211Swpaul/* 3761839Swollman * Print why creation failed 3771839Swollman */ 3781903Swollman__BEGIN_DECLS 37974462Salfredextern void clnt_pcreateerror __P((const char *)); /* stderr */ 38074462Salfredextern char *clnt_spcreateerror __P((const char *)); /* string */ 3811903Swollman__END_DECLS 3821839Swollman 3831839Swollman/* 3841839Swollman * Like clnt_perror(), but is more verbose in its output 3858858Srgrimes */ 3861903Swollman__BEGIN_DECLS 3871903Swollmanextern void clnt_perrno __P((enum clnt_stat)); /* stderr */ 3881903Swollmanextern char *clnt_sperrno __P((enum clnt_stat)); /* string */ 3891903Swollman__END_DECLS 3901839Swollman 3911839Swollman/* 3921839Swollman * Print an English error message, given the client error code 3931839Swollman */ 3941903Swollman__BEGIN_DECLS 39574462Salfredextern void clnt_perror __P((CLIENT *, const char *)); /* stderr */ 39674462Salfredextern char *clnt_sperror __P((CLIENT *, const char *)); /* string */ 3971903Swollman__END_DECLS 3981839Swollman 3991903Swollman 4008858Srgrimes/* 4011839Swollman * If a creation fails, the following allows the user to figure out why. 4021839Swollman */ 4031839Swollmanstruct rpc_createerr { 4041839Swollman enum clnt_stat cf_stat; 4051839Swollman struct rpc_err cf_error; /* useful when cf_stat == RPC_PMAPFAILURE */ 4061839Swollman}; 4071839Swollman 40874462Salfred#ifdef _THREAD_SAFE 40974462Salfred__BEGIN_DECLS 41074462Salfredextern struct rpc_createerr *__rpc_createerr __P((void)); 41174462Salfred__END_DECLS 41274462Salfred#define rpc_createerr (*(__rpc_createerr())) 41374462Salfred#else 4141839Swollmanextern struct rpc_createerr rpc_createerr; 41574462Salfred#endif /* _THREAD_SAFE */ 4161839Swollman 41774462Salfred/* 41874462Salfred * The simplified interface: 41974462Salfred * enum clnt_stat 42074462Salfred * rpc_call(host, prognum, versnum, procnum, inproc, in, outproc, out, nettype) 42174462Salfred * const char *host; 42274462Salfred * const rpcprog_t prognum; 42374462Salfred * const rpcvers_t versnum; 42474462Salfred * const rpcproc_t procnum; 42574462Salfred * const xdrproc_t inproc, outproc; 42674462Salfred * const char *in; 42774462Salfred * char *out; 42874462Salfred * const char *nettype; 42974462Salfred */ 43074462Salfred__BEGIN_DECLS 43174462Salfredextern enum clnt_stat rpc_call __P((const char *, const rpcprog_t, 43274462Salfred const rpcvers_t, const rpcproc_t, 43374462Salfred const xdrproc_t, const char *, 43474462Salfred const xdrproc_t, char *, const char *)); 43574462Salfred__END_DECLS 4361839Swollman 43774462Salfred/* 43874462Salfred * RPC broadcast interface 43974462Salfred * The call is broadcasted to all locally connected nets. 44074462Salfred * 44174462Salfred * extern enum clnt_stat 44274462Salfred * rpc_broadcast(prog, vers, proc, xargs, argsp, xresults, resultsp, 44374462Salfred * eachresult, nettype) 44474462Salfred * const rpcprog_t prog; -- program number 44574462Salfred * const rpcvers_t vers; -- version number 44674462Salfred * const rpcproc_t proc; -- procedure number 44774462Salfred * const xdrproc_t xargs; -- xdr routine for args 44874462Salfred * caddr_t argsp; -- pointer to args 44974462Salfred * const xdrproc_t xresults; -- xdr routine for results 45074462Salfred * caddr_t resultsp; -- pointer to results 45174462Salfred * const resultproc_t eachresult; -- call with each result 45274462Salfred * const char *nettype; -- Transport type 45374462Salfred * 45474462Salfred * For each valid response received, the procedure eachresult is called. 45574462Salfred * Its form is: 45674462Salfred * done = eachresult(resp, raddr, nconf) 45774462Salfred * bool_t done; 45874462Salfred * caddr_t resp; 45974462Salfred * struct netbuf *raddr; 46074462Salfred * struct netconfig *nconf; 46174462Salfred * where resp points to the results of the call and raddr is the 46274462Salfred * address if the responder to the broadcast. nconf is the transport 46374462Salfred * on which the response was received. 46474462Salfred * 46574462Salfred * extern enum clnt_stat 46674462Salfred * rpc_broadcast_exp(prog, vers, proc, xargs, argsp, xresults, resultsp, 46774462Salfred * eachresult, inittime, waittime, nettype) 46874462Salfred * const rpcprog_t prog; -- program number 46974462Salfred * const rpcvers_t vers; -- version number 47074462Salfred * const rpcproc_t proc; -- procedure number 47174462Salfred * const xdrproc_t xargs; -- xdr routine for args 47274462Salfred * caddr_t argsp; -- pointer to args 47374462Salfred * const xdrproc_t xresults; -- xdr routine for results 47474462Salfred * caddr_t resultsp; -- pointer to results 47574462Salfred * const resultproc_t eachresult; -- call with each result 47674462Salfred * const int inittime; -- how long to wait initially 47774462Salfred * const int waittime; -- maximum time to wait 47874462Salfred * const char *nettype; -- Transport type 47974462Salfred */ 4801839Swollman 48174462Salfredtypedef bool_t (*resultproc_t) __P((caddr_t, ...)); 48274462Salfred 48374462Salfred__BEGIN_DECLS 48474462Salfredextern enum clnt_stat rpc_broadcast __P((const rpcprog_t, const rpcvers_t, 48574462Salfred const rpcproc_t, const xdrproc_t, 48674462Salfred caddr_t, const xdrproc_t, caddr_t, 48774462Salfred const resultproc_t, const char *)); 48874462Salfredextern enum clnt_stat rpc_broadcast_exp __P((const rpcprog_t, const rpcvers_t, 48974462Salfred const rpcproc_t, const xdrproc_t, 49074462Salfred caddr_t, const xdrproc_t, caddr_t, 49174462Salfred const resultproc_t, const int, 49274462Salfred const int, const char *)); 49374462Salfred__END_DECLS 49474462Salfred 49574462Salfred/* For backward compatibility */ 49674462Salfred#include <rpc/clnt_soc.h> 49774462Salfred 49874462Salfred#endif /* !_RPC_CLNT_H_ */ 499