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

gi_xdr_rpc.h File Reference

Go to the source code of this file.

Classes

struct  gi_rpcmsg_oauth
struct  gi_rpcmsg_call
struct  gi_rpcmsg_acpt_reply
struct  gi_rpcmsg_rjct_reply
struct  gi_rpcmsg_reply
struct  gi_rpcmsg
struct  gi_rpcrm

Enumerations

enum  gi_rpcmsg_type { GI_RPCMSG_CALL = 0, GI_RPCMSG_REPLY = 1 }
enum  gi_rpcmsg_rstat { GI_RPCMSG_REPLY_ACCEPTED = 0, GI_RPCMSG_REPLY_DENIED = 1 }
enum  gi_rpcmsg_astat {
  GI_RPCMSG_ACCEPT_SUCCESS = 0, GI_RPCMSG_ACCEPT_PROG_UNAVAIL = 1, GI_RPCMSG_ACCEPT_PROG_MISMATCH = 2, GI_RPCMSG_ACCEPT_PROC_UNAVAIL = 3,
  GI_RPCMSG_ACCEPT_GARBAGE_ARGS = 4, GI_RPCMSG_ACCEPT_SYSTEM_ERR = 5
}
enum  gi_rpcmsg_estat { GI_RPCMSG_REJECT_RPC_MISMATCH = 0, GI_RPCMSG_REJECT_AUTH_ERROR = 1 }
enum  gi_rpcmsg_auth_flavor { GI_RPCMSG_AUTH_NONE = 0 }

Functions

EXTERN_C_BEGIN LIBGIFT_EXPORT
bool 
gi_xdr_rpcmsg (GiXdr *xdrs, struct gi_rpcmsg *msg, bool rm)
LIBGIFT_EXPORT bool gi_xdr_rpcrm (GiXdr *xdrs, struct gi_rpcrm *rm)


Detailed Description


Function Documentation

EXTERN_C_BEGIN LIBGIFT_EXPORT bool gi_xdr_rpcmsg GiXdr xdrs,
struct gi_rpcmsg *  msg,
bool  rm
 

XDR procedure to encode or decode a complete RPC message structure. Any additional arguments will be left on the XDR stream.

Parameters:
rm When encoding, indicates whether space should be reserved on the XDR buffer for the record marker. When decoding, the feature simply skips the record marker and discard it.

LIBGIFT_EXPORT bool gi_xdr_rpcrm GiXdr xdrs,
struct gi_rpcrm rm
 

XDR procedure for decoding Record Markers (RM) found on byte-stream transport protocols. See RFC1831 for more details.

Note:
The XDR stream will be temporarily rewound to access the record marker found at the beginning of the stream.


Generated on Sun Aug 22 07:56:41 2004 by doxygen 1.3.7