9 #define xdr_Boolean xdr_bool
11 typedef int (*xdrIOFunc)(int handle, char *buf, unsigned int len);
17 // Functions common to server and client side.
21 XDRrpc(char *m, char *u, char *p, xdrIOFunc, xdrIOFunc);
22 XDRrpc(int fd, xdrIOFunc readRoutine, xdrIOFunc writeRoutine);
25 int pid; // pid of child;
31 void setTid(int id) { tid = id; }
34 // these are only to be used by implmentors of thread RPCs.
35 // the value is only valid during a thread RPC.
36 unsigned int requestingThread;
37 unsigned int getRequestingThread() { return requestingThread; }
41 // client side common routines that are transport independent.
45 void awaitResponce(int tag);
46 void verifyProtocolAndVersion();
50 // server side routines that are transport independent.
54 int __versionVerifyDone__;
57 extern int xdr_String(XDR*, String*);
58 extern int RPCprocessCreate(int *pid, char *hostName, char *userName, char *commandLine);