Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

clnt.h File Reference

#include <sys/cdefs.h>

Go to the source code of this file.

Defines

#define re_errno   ru.RE_errno
#define re_why   ru.RE_why
#define re_vers   ru.RE_vers
#define re_lb   ru.RE_lb
#define CLNT_CALL(rh, proc, xargs, argsp, xres, resp, secs)
#define clnt_call(rh, proc, xargs, argsp, xres, resp, secs)
#define CLNT_ABORT(rh)   ((*(rh)->cl_ops->cl_abort)(rh))
#define clnt_abort(rh)   ((*(rh)->cl_ops->cl_abort)(rh))
#define CLNT_GETERR(rh, errp)   ((*(rh)->cl_ops->cl_geterr)(rh, errp))
#define clnt_geterr(rh, errp)   ((*(rh)->cl_ops->cl_geterr)(rh, errp))
#define CLNT_FREERES(rh, xres, resp)   ((*(rh)->cl_ops->cl_freeres)(rh,xres,resp))
#define clnt_freeres(rh, xres, resp)   ((*(rh)->cl_ops->cl_freeres)(rh,xres,resp))
#define CLNT_CONTROL(cl, rq, in)   ((*(cl)->cl_ops->cl_control)(cl,rq,in))
#define clnt_control(cl, rq, in)   ((*(cl)->cl_ops->cl_control)(cl,rq,in))
#define CLSET_TIMEOUT   1
#define CLGET_TIMEOUT   2
#define CLGET_SERVER_ADDR   3
#define CLSET_RETRY_TIMEOUT   4
#define CLGET_RETRY_TIMEOUT   5
#define CLNT_DESTROY(rh)   ((*(rh)->cl_ops->cl_destroy)(rh))
#define clnt_destroy(rh)   ((*(rh)->cl_ops->cl_destroy)(rh))
#define RPCTEST_PROGRAM   ((u_long)1)
#define RPCTEST_VERSION   ((u_long)1)
#define RPCTEST_NULL_PROC   ((u_long)2)
#define RPCTEST_NULL_BATCH_PROC   ((u_long)3)
#define NULLPROC   ((u_int)0)
#define UDPMSGSIZE   8800
#define RPCSMALLMSGSIZE   400

Typedefs

typedef __rpc_client CLIENT

Enumerations

enum  clnt_stat {
  RPC_SUCCESS = 0, RPC_CANTENCODEARGS = 1, RPC_CANTDECODERES = 2, RPC_CANTSEND = 3,
  RPC_CANTRECV = 4, RPC_TIMEDOUT = 5, RPC_VERSMISMATCH = 6, RPC_AUTHERROR = 7,
  RPC_PROGUNAVAIL = 8, RPC_PROGVERSMISMATCH = 9, RPC_PROCUNAVAIL = 10, RPC_CANTDECODEARGS = 11,
  RPC_SYSTEMERROR = 12, RPC_UNKNOWNHOST = 13, RPC_UNKNOWNPROTO = 17, RPC_PMAPFAILURE = 14,
  RPC_PROGNOTREGISTERED = 15, RPC_FAILED = 16
}

Functions

__BEGIN_DECLS CLIENT *clntraw_create __P ((u_long, u_long))
__END_DECLS __BEGIN_DECLS
CLIENT *clnt_create 
__P ((char *, u_long, u_long, char *))
__END_DECLS __BEGIN_DECLS
CLIENT *clnttcp_create 
__P ((struct sockaddr_in *, u_long, u_long, int *, u_int, u_int))
__END_DECLS __BEGIN_DECLS
CLIENT *clntudp_create 
__P ((struct sockaddr_in *, u_long, u_long, struct timeval, int *))
CLIENT *clntudp_bufcreate __P ((struct sockaddr_in *, u_long, u_long, struct timeval, int *, u_int, u_int))
__END_DECLS __BEGIN_DECLS
void clnt_pcreateerror 
__P ((char *))
__END_DECLS __BEGIN_DECLS
void clnt_perrno 
__P ((enum clnt_stat))
__END_DECLS __BEGIN_DECLS
void clnt_perror 
__P ((CLIENT *, char *))

Variables

rpc_createerr rpc_createerr


Define Documentation

#define CLGET_RETRY_TIMEOUT   5
 

Definition at line 219 of file clnt.h.

#define CLGET_SERVER_ADDR   3
 

Definition at line 214 of file clnt.h.

#define CLGET_TIMEOUT   2
 

Definition at line 213 of file clnt.h.

#define clnt_abort rh   )     ((*(rh)->cl_ops->cl_abort)(rh))
 

Definition at line 178 of file clnt.h.

#define CLNT_ABORT rh   )     ((*(rh)->cl_ops->cl_abort)(rh))
 

Definition at line 177 of file clnt.h.

#define clnt_call rh,
proc,
xargs,
argsp,
xres,
resp,
secs   ) 
 

Value:

((*(rh)->cl_ops->cl_call)(rh, proc, xargs, (caddr_t)argsp,      \
            xres, (caddr_t)resp, secs))

Definition at line 168 of file clnt.h.

#define CLNT_CALL rh,
proc,
xargs,
argsp,
xres,
resp,
secs   ) 
 

Value:

((*(rh)->cl_ops->cl_call)(rh, proc, xargs, (caddr_t)argsp,      \
            xres, (caddr_t)resp, secs))

Definition at line 165 of file clnt.h.

#define clnt_control cl,
rq,
in   )     ((*(cl)->cl_ops->cl_control)(cl,rq,in))
 

Definition at line 207 of file clnt.h.

#define CLNT_CONTROL cl,
rq,
in   )     ((*(cl)->cl_ops->cl_control)(cl,rq,in))
 

Definition at line 206 of file clnt.h.

#define clnt_destroy rh   )     ((*(rh)->cl_ops->cl_destroy)(rh))
 

Definition at line 227 of file clnt.h.

#define CLNT_DESTROY rh   )     ((*(rh)->cl_ops->cl_destroy)(rh))
 

Definition at line 226 of file clnt.h.

#define clnt_freeres rh,
xres,
resp   )     ((*(rh)->cl_ops->cl_freeres)(rh,xres,resp))
 

Definition at line 197 of file clnt.h.

#define CLNT_FREERES rh,
xres,
resp   )     ((*(rh)->cl_ops->cl_freeres)(rh,xres,resp))
 

Definition at line 196 of file clnt.h.

#define clnt_geterr rh,
errp   )     ((*(rh)->cl_ops->cl_geterr)(rh, errp))
 

Definition at line 186 of file clnt.h.

#define CLNT_GETERR rh,
errp   )     ((*(rh)->cl_ops->cl_geterr)(rh, errp))
 

Definition at line 185 of file clnt.h.

#define CLSET_RETRY_TIMEOUT   4
 

Definition at line 218 of file clnt.h.

#define CLSET_TIMEOUT   1
 

Definition at line 212 of file clnt.h.

#define NULLPROC   ((u_int)0)
 

Definition at line 245 of file clnt.h.

#define re_errno   ru.RE_errno
 

Definition at line 110 of file clnt.h.

#define re_lb   ru.RE_lb
 

Definition at line 113 of file clnt.h.

#define re_vers   ru.RE_vers
 

Definition at line 112 of file clnt.h.

#define re_why   ru.RE_why
 

Definition at line 111 of file clnt.h.

#define RPCSMALLMSGSIZE   400
 

Definition at line 374 of file clnt.h.

#define RPCTEST_NULL_BATCH_PROC   ((u_long)3)
 

Definition at line 239 of file clnt.h.

#define RPCTEST_NULL_PROC   ((u_long)2)
 

Definition at line 238 of file clnt.h.

#define RPCTEST_PROGRAM   ((u_long)1)
 

Definition at line 236 of file clnt.h.

#define RPCTEST_VERSION   ((u_long)1)
 

Definition at line 237 of file clnt.h.

#define UDPMSGSIZE   8800
 

Definition at line 373 of file clnt.h.


Typedef Documentation

typedef struct __rpc_client CLIENT
 


Enumeration Type Documentation

enum clnt_stat
 

Enumeration values:
RPC_SUCCESS 
RPC_CANTENCODEARGS 
RPC_CANTDECODERES 
RPC_CANTSEND 
RPC_CANTRECV 
RPC_TIMEDOUT 
RPC_VERSMISMATCH 
RPC_AUTHERROR 
RPC_PROGUNAVAIL 
RPC_PROGVERSMISMATCH 
RPC_PROCUNAVAIL 
RPC_CANTDECODEARGS 
RPC_SYSTEMERROR 
RPC_UNKNOWNHOST 
RPC_UNKNOWNPROTO 
RPC_PMAPFAILURE 
RPC_PROGNOTREGISTERED 
RPC_FAILED 

Definition at line 54 of file clnt.h.


Function Documentation

__END_DECLS __BEGIN_DECLS void clnt_perror __P (CLIENT *, char *)   ) 
 

__END_DECLS __BEGIN_DECLS void clnt_perrno __P (enum clnt_stat  ) 
 

__END_DECLS __BEGIN_DECLS void clnt_pcreateerror __P (char *)   ) 
 

CLIENT* clntudp_bufcreate __P (struct sockaddr_in *, u_long, u_long, struct timeval, int *, u_int, u_int)   ) 
 

__END_DECLS __BEGIN_DECLS CLIENT* clntudp_create __P (struct sockaddr_in *, u_long, u_long, struct timeval, int *)   ) 
 

__END_DECLS __BEGIN_DECLS CLIENT* clnttcp_create __P (struct sockaddr_in *, u_long, u_long, int *, u_int, u_int)   ) 
 

__END_DECLS __BEGIN_DECLS CLIENT* clnt_create __P (char *, u_long, u_long, char *)   ) 
 

__BEGIN_DECLS CLIENT* clntraw_create __P (u_long, u_long)   ) 
 


Variable Documentation

struct rpc_createerr rpc_createerr
 


Generated on Sun May 14 14:51:29 2006 by  doxygen 1.4.2