Previous | Contents | Index |
Serializes and deserializes integers.
#include <tcpip$rpcxdr.h>bool_t xdr_int(XDR *xdrs, int *ip);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.ip
A pointer to the integer data.
A filter primitive that translates between integers and their external representations.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes long integers.
#include <tcpip$rpcxdr.h>bool_t xdr_long(XDR *xdrs, long *lp);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.lp
A pointer to a long integer.
A filter primitive that translates between long integers and their external representations.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes opaque structures.
#include <tcpip$rpcxdr.h>bool_t xdr_opaque(XDR *xdrs, char *op, u_int cnt);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.op
A pointer to the opaque data.cnt
The size of op in bytes.
A filter primitive that translates between fixed-size opaque data and its external representation. This routine treats the data as a fixed length of bytes and does not attempt to convert the bytes.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes ONC RPC authentication information message.
#include <tcpip$rpcxdr.h>bool_t xdr_opaque_auth(XDR *xdrs, struct opaque_auth *authp);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.authp
A pointer to an opaque_auth structure describing authentication information. The pointer should reference data created by the authnone_create , authunix_create , or authunix_create_default routine.
Translates ONC RPC authentication information messages. This routine is useful for users who want to generate messages without using the ONC RPC package.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes Portmapper parameters.
#include <tcpip$rpcxdr.h>bool_t xdr_pmap(XDR *xdrs, struct pmap *regs);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.regs
A pointer to the pmap structure. This structure contains the program number, version number, protocol number, and port number.
Describes parameters to various Portmapper procedures, externally. This routine is useful for users who want to generate these parameters without using the Portmapper interface.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes OpenVMS specific Portmapper parameters.
#include <tcpip$rpcxdr.h>bool_t xdr_pmap_vms(XDR *xdrs, struct pmap_vms *regs);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.regs
A pointer to the pmap_vms structure. This structure contains the program number, version number, protocol number, port number and the OpenVMS specific process identification.
This routine is similar to xdr_pmap() , except it also includes the process identification in the pmap_vms structure.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes a list of Portmapper port mappings.
#include <tcpip$rpcxdr.h>bool_t xdr_pmaplist(XDR *xdrs, struct pmaplist **rpp);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.rpp
A pointer to a pointer to a pmaplist structure containing a list of Portmapper programs and their respective information. If the routine is used to decode a Portmapper listing, it sets rpp to the address of a newly allocated linked list of pmaplist structures.
Describes a list of port mappings, externally. This routine is useful for users who want to generate these parameters without using the Portmapper interface.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes a list of Portmapper port mappings for OpenVMS systems.
#include <tcpip$rpcxdr.h>bool_t xdr_pmaplist_vms (XDR *xdrs, struct pmaplist_vms **rpp);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.rpp
A pointer to a pointer to a pmaplist_vms structure containing a list of Portmapper programs and their respective information, including OpenVMS-specific information.
This routine is similar to the xdr_pmaplist routine, except that it also includes the process identification in the pmaplist_vms structure.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes indirect pointers and the data being pointed to.
#include <tcpip$rpcxdr.h>bool_t xdr_pointer(XDR *xdrs, char **objpp, u_int objsize, xdrproc_t objproc);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.objpp
A pointer to a pointer to the data being converted.objsize
The size of the data structure in bytes.objproc
The XDR procedure that filters the structure between its local form and its external representation.
An XDR routine for translating data structures that contain pointers to other structures, such as a linked list. The xdr_pointer routine is similar to the xdr_reference routine. The differences are that the xdr_pointer routine handles pointers with the value NULL and that it translates the pointer values to a boolean. If the boolean is TRUE, the data follows the boolean.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes indirect pointers and the data being pointed to.
#include <tcpip$rpcxdr.h>bool_t xdr_reference(XDR *xdrs, char **objpp, u_int objsize, xdrproc_t objproc);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.objpp
A pointer to a pointer to the structure containing the data being converted. If objpp is zero, the xdr_reference routine allocates the necessary storage when decoding. This argument must be nonzero during encoding.objsize
The size of the structure in bytes.objproc
The XDR procedure that filters the structure between its local form and its external representation.
A primitive that provides pointer chasing within structures.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes the remainder of an RPC reply message after the header indicates that the reply is rejected.
#include <tcpip$rpcxdr.h>bool_t xdr_rejected_reply(XDR *xdrs, struct rejected_reply *rrp);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.rrp
A pointer to the rejected_reply structure describing the rejected reply message.
Describes ONC RPC reply messages. This routine is useful for users who want to generate messages without using the ONC RPC package.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes the RPC reply header and then calls the appropriate routine to interpret the rest of the message.
#include <tcpip$rpcxdr.h>bool_t xdr_replymsg(XDR *xdrs, struct rpc_msg *rmsgp);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.rmsgp
A pointer to the rpc_msg structure describing the reply message.
Describes ONC RPC reply messages. This routine is useful for users who want to generate messages without using the ONC RPC package. This routine interprets the message header and then calls either the xdr_accepted_reply or the xdr_rejected_reply routine to interpret the body of the RPC message.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes short integers.
#include <tcpip$rpcxdr.h>bool_t xdr_short(XDR *xdrs, short *sp);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.sp
A pointer to a short integer.
A filter primitive that translates between short integers and their external representations.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes strings (arrays of bytes terminated by a NULL character).
#include <tcpip$rpcxdr.h>bool_t xdr_string(XDR *xdrs, char **spp, u_int maxsize);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.spp
A pointer to a pointer to a character string.maxsize
The maximum size of the string.
A filter primitive that translates between strings and their corresponding external representations. Strings cannot be longer than the value specified with the maxsize parameter.While decoding, if *spp is NULL , this routine allocates the necessary storage to hold the NULL -terminated string and sets *spp to point to the allocated storage.
This routine is the same as the xdr_wrapstring routine, except that this routine allows you to specify maxsize .
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes unsigned characters.
#include <tcpip$rpcxdr.h>bool_t xdr_u_char(XDR *xdrs, char *ucp);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.ucp
A pointer to a character.
A filter primitive that translates between internal representation of unsigned characters and their XDR representations.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes unsigned VAX quadwords (known in XDR as hyperintegers).
#include <tcpip$rpcxdr.h>bool_t xdr_u_hyper(XDR *xdrs, unsigned quad *uhp);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.uhp
A pointer to the unsigned hyperinteger.
A filter primitive that translates between unsigned hyperintegers and their external representations.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes unsigned integers.
#include <tcpip$rpcxdr.h>bool_t xdr_u_int(XDR *xdrs, unsigned *uip);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.uip
A pointer to the unsigned integer.
A filter primitive that translates between unsigned integers and their external representations.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes unsigned long integers.
#include <tcpip$rpcxdr.h>bool_t xdr_u_long(XDR *xdrs, unsigned long *ulp);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.ulp
A pointer to the unsigned long integer.
A filter primitive that translates between unsigned long integers and their external representations.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes unsigned short integers.
#include <tcpip$rpcxdr.h>bool_t xdr_u_short(XDR *xdrs, unsigned short *usp);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.usp
A pointer to the unsigned short integer.
A filter primitive that translates between unsigned short integers and their external representations.
TRUE Indicates success. FALSE Indicates failure.
Serializes and deserializes discriminant unions.
#include <tcpip$rpcxdr.h>bool_t xdr_union(XDR *xdrs, enum *dscmp, char *unp, struct xdr_discrim *choices, xdrproc_t default);
xdrs
A pointer to an XDR stream handle created by one of the XDR stream-handle creation routines.dscmp
A pointer to the union's discriminant.unp
A pointer to the union's data.choices
A pointer to an array of xdr_discrim structures. Each structure contains an ordered pair of [value,proc] . The final structure in the array is denoted by a pointer with the value NULL .default
The address of the default XDR routine to call if the dscmp argument is not found in the choices array.
A filter primitive that translates between a discriminated union and its corresponding external representation. The xdr_union routine first translates the discriminant of the union located at dscmp . This discriminant is always of type enum_t .Next, the routine translates the union data located at unp . To translate the union data the xdr_union routine first searches the structure pointed to by the choices argument for the union discriminant passed in the dscmp argument. If a match is found, the xdr_union routine calls proc to translate the union data.
The end of the xdr_discrim structure array must contain an entry with the value NULL for proc . If the xdr_union routine reaches this entry before finding a match, the routine calls the default procedure (if it is not NULL ).
TRUE Indicates success. FALSE Indicates failure.
Previous | Next | Contents | Index |