Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!news From: RSPELLMAN@bat.bates.edu Newsgroups: comp.unix.questions Subject: RE: RPC programming Message-ID: <22684@adm.BRL.MIL> Date: 7 Mar 90 18:26:50 GMT Sender: news@adm.BRL.MIL Lines: 19 tph@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.