XDR_INIT_ENCODE

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

xdr_init_encode - Initialize a struct xdr_stream for sending data.  

SYNOPSIS

"SYNOPSIS"

void xdr_init_encode (struct xdr_stream * xdr, struct xdr_buf * buf, uint32_t * p);  

ARGUMENTS

xdr
pointer to xdr_stream struct
buf
pointer to XDR buffer in which to encode data
p
current pointer inside XDR buffer
 

NOTE

at the moment the RPC client only passes the length of our scratch buffer in the xdr_buf's header kvec. Previously this meant we needed to call xdr_adjust_iovec after encoding the data. With the new scheme, the xdr_stream manages the details of the buffer length, and takes care of adjusting the kvec length for us.


 

Index

NAME
SYNOPSIS
ARGUMENTS
NOTE

This document was created by man2html, using the manual pages.
Time: 00:03:01 GMT, October 09, 2005