TLI/XTI network buffer structure
#include <sys/tiuser.h> /* TLI only */
#include <xti.h> /* XTI only */
In the Network Services library, the netbuf structure is
used in various Transport Layer Interface (TLI)
and X/Open Transport Interface (XTI)
functions to send and receive data and information.
The netbuf structure contains the following members:
unsigned int maxlen;
unsigned int len;
The structure members are:
points to a user input and/or output buffer.
the number of bytes contained in the buffer.
If the structure is used for both input and output,
the function replaces the user value of
len on return.
generally has significance only when
is used to receive output from the function.
In this case, it specifies the physical size of the buffer,
the maximum value of
len that can be set by the function.
maxlen is not large enough to hold the returned information,
a TBUFOVFLW error generally results.
However, certain functions may return part
of the data and not generate an error.
© 2003 File Formats for Programming (FP)
SCO OpenServer Release 5.0.7 -- 11 February 2003