RTEMS CPU Kit with SuperCore  4.11.3
Data Structures | Macros | Typedefs | Functions | Variables
clnt.h File Reference
#include <rpc/clnt_stat.h>
#include <sys/cdefs.h>
#include <sys/un.h>
#include <rpc/auth.h>
#include <rpc/clnt_soc.h>
Include dependency graph for clnt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rpc_err
 
struct  __rpc_client
 
struct  __rpc_client::clnt_ops
 
struct  rpc_createerr
 

Macros

#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 RPCSMALLMSGSIZE   400 /* a more reasonable packet size */
 
#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 /* set timeout (timeval) */
 
#define CLGET_TIMEOUT   2 /* get timeout (timeval) */
 
#define CLGET_SERVER_ADDR   3 /* get server's address (sockaddr) */
 
#define CLGET_FD   6 /* get connections file descriptor */
 
#define CLGET_SVC_ADDR   7 /* get server's address (netbuf) */
 
#define CLSET_FD_CLOSE   8 /* close fd while clnt_destroy */
 
#define CLSET_FD_NCLOSE   9 /* Do not close fd while clnt_destroy */
 
#define CLGET_XID   10 /* Get xid */
 
#define CLSET_XID   11 /* Set xid */
 
#define CLGET_VERS   12 /* Get version number */
 
#define CLSET_VERS   13 /* Set version number */
 
#define CLGET_PROG   14 /* Get program number */
 
#define CLSET_PROG   15 /* Set program number */
 
#define CLSET_SVC_ADDR   16 /* get server's address (netbuf) XXX */
 
#define CLSET_PUSH_TIMOD   17 /* push timod if not already present XXX */
 
#define CLSET_POP_TIMOD   18 /* pop timod XXX */
 
#define CLSET_RETRY_TIMEOUT   4 /* set retry timeout (timeval) */
 
#define CLGET_RETRY_TIMEOUT   5 /* get retry timeout (timeval) */
 
#define CLGET_LOCAL_ADDR   19 /* get local addr (sockaddr) */
 
#define CLNT_DESTROY(rh)   ((*(rh)->cl_ops->cl_destroy)(rh))
 
#define clnt_destroy(rh)   ((*(rh)->cl_ops->cl_destroy)(rh))
 
#define RPCTEST_PROGRAM   ((rpcprog_t)1)
 
#define RPCTEST_VERSION   ((rpcvers_t)1)
 
#define RPCTEST_NULL_PROC   ((rpcproc_t)2)
 
#define RPCTEST_NULL_BATCH_PROC   ((rpcproc_t)3)
 
#define NULLPROC   ((rpcproc_t)0)
 

Typedefs

typedef struct __rpc_client CLIENT
 

Functions

__BEGIN_DECLS CLIENTclnt_create (const char *, const rpcprog_t, const rpcvers_t, const char *)
 
__END_DECLS __BEGIN_DECLS CLIENTclntunix_create (struct sockaddr_un *, u_long, u_long, int *, u_int, u_int)
 
__END_DECLS __BEGIN_DECLS void clnt_pcreateerror (const char *)
 
char * clnt_spcreateerror (const char *)
 
__END_DECLS __BEGIN_DECLS void clnt_perrno (enum clnt_stat)
 
char * clnt_sperrno (enum clnt_stat)
 
__END_DECLS __BEGIN_DECLS void clnt_perror (CLIENT *, const char *)
 
char * clnt_sperror (CLIENT *, const char *)
 

Variables

struct rpc_createerr rpc_createerr
 

Macro Definition Documentation

◆ CLNT_CALL

#define CLNT_CALL (   rh,
  proc,
  xargs,
  argsp,
  xres,
  resp,
  secs 
)
Value:
((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \
argsp, xres, resp, secs))
Definition: proc.h:5

◆ clnt_call

#define clnt_call (   rh,
  proc,
  xargs,
  argsp,
  xres,
  resp,
  secs 
)
Value:
((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \
argsp, xres, resp, secs))
Definition: proc.h:5