Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ intro(3N) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(3)

ip(4P)

tcp(4P)

udp(4P)

intro(3N)

NAME

intro − introduction to networking services

SYNOPSIS

#include <tiuser.h>

DESCRIPTION

This section describes the functions provided via the Transport Level Interface (TLI).  The TLI provides the services of the transport level of the Open Systems Interconnection (OSI) Reference Model for both connection-mode and connectionless-mode transport services.  Under CX/UX, they also provide an interface to the Internet protocols: tcp, udp, icmp and ip. 

These functions are provided via a set of library routines in the Network Support Library and are in the library libnsl, which is searched by the link editor when the −lnsl option is included. 

LIBRARY FUNCTIONS

The following functions support initialization/de-initialization and connection establishment:

t_accept()t_bind()t_close()
t_connect()t_listen()t_open()
t_optmgmt()t_rcvconnect()t_unbind()

The following functions provide local management capabilities and can be issued during any phase of the communication:

t_alloc()t_error()t_free()
t_getinfo()t_getstate()t_look()

The following functions are used for data transfer:

t_snd()t_sndudata()t_rcv()
t_rcvudata()t_rcvuderr()

The following functions are used in the connection release phase:

t_rcvdis()t_rcvrel()t_snddis()
t_sndrel()

DEFINITIONS

netbuf structure

A common data structure used in many of the Transport Layer Interface calls is the struct netbuf, which contains the following fields:

unsigned intmaxlen;/∗ maximum buffer length ∗/
unsigned intlen;/∗ length of data in buffer ∗/
char∗buf;/∗ pointer to data buffer∗/

maxlen describes the maximum length of buf, and is used by the Transport Services in order to determine the amount of space available to be used in returning data.  len is the actual length of data in buf, and is either set by the calling program when the netbuf is passed to the Transport Services, or set by these routines on data passed back to the caller. 

SEE ALSO

intro(3), ip(4P), tcp(4P), udp(4P). 

CX/UX Networking

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