RPC programming
RSPELLMAN at bat.bates.edu
RSPELLMAN at bat.bates.edu
Thu Mar 8 04:26:50 AEST 1990
tph at cs.utexas.edu write:
>2. The XDR serializing/deserializing routines do not explicitly free
>the memory allocated. How can I free them myself?
/*
* Xdr operations. XDR_ENCODE causes the type to be encoded into the
* stream. XDR_DECODE causes the type to be extracted from the stream.
* XDR_FREE can be used to release the space allocated by an XDR_DECODE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* request.
*/
enum xdr_op {
XDR_ENCODE=0,
XDR_DECODE=1,
XDR_FREE=2
};
This piece of code comes from xdr.h. These enums define the values for
xdrs->x_op.
More information about the Comp.unix.questions
mailing list