DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

netbuf(FP)


netbuf -- TLI/XTI network buffer structure

Syntax

#include <sys/tiuser.h>		/*  TLI only  */

#include <xti.h> /* XTI only */

Description

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;
   char         *buf;
The structure members are:

buf
points to a user input and/or output buffer.

len
generally specifies 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.

maxlen
generally has significance only when buf 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. If 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.

See also

t_accept(NET), t_connect(NET), t_getstate(NET), t_listen(NET), t_open(NET), t_rcvconnect(NET)
© 2005 File Formats for Programming (FP)
SCO OpenServer Release 6.0.0 -- 02 June 2005