Table of Contents

Name

EncapsulateRec - XDR encapsulate a TRANS record

Description

EncapsulateRec encodes a TRANS record using AccelNET xdr functions. The caller supplies an output buffer and a pointer to the object to pack up. The function returns the filled buffer and the number of bytes placed in it.

This function is part of libtcp.

Syntax

int EncapsulateRec(
   TRANS *Tr,

   unsigned char *buf,

   int bufsize,

   int *Length

   );

Arguments

Tr

pointer to the TRANS record to encapsulate.

buf

pointer to output buffer.

bufsize

size of output buffer.

Length

pointer to variable to return number of bytes of xdr encapsulated data.

Returns

Returns TRUE on successful completion of xdr translation. Returns FALSE on any failure i.e. out of buffer space.

See Also

libtcp(3tcp)

Manual page revision

$Id: EncapsulateRec.3,v 1.1 2002/04/07 19:50:52 kitchen Exp $


Table of Contents