Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ netbuf(FP) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


 netbuf(FP)                     6 January 1993                     netbuf(FP)


 Name

    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) functions to send and receive data and
    information.  The netbuf structure contains the following members:

       unsigned int maxlen;
       unsigned int len;
       char         *buf;

    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 TLI 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

    taccept(S), tconnect(S), tgetstate(S), tlisten(S), topen(S),
    trcvconnect(S)


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026