|
t_close(3) -- close a transport endpoint
|
The t_close() function informs the transport provider that the user is finished with the transport endpoint specified by fd, and frees any local library resources associated with the endpoint. t_close() also closes the file descriptor associated with the transport endpoint. t_close() should be called from the T_UNBND state (see t_getstate(3)). However, this function does not check state informatio... |
t_connect(3) -- establish a connection with another transport user
|
This function enables a transport user to request a connection to the specified destination transport user. This function can only be issued in the T_IDLE state. fd identifies the local transport endpoint where communication will be established. sndcall and rcvcall point to a t_call structure which contains the following members: struct netbuf addr; struct netbuf opt; struct netbuf udata; int sequ... |
|
t_error(3) -- produce error message
|
The t_error() function produces a language-dependent message on the standard error output which describes the last error encountered during a call to a transport function. The argument string errmsg is a user-supplied error message that gives context to the error. The error message is written as follows: First if errmsg is not a null pointer and the character pointed to be errmsg is not the null c... |
t_free(3) -- free a library structure
|
The t_free() function frees memory previously allocated by t_alloc(). This function will free memory for the specified structure and will also free memory for buffers referenced by the structure. The argument ptr points to one of the seven structure types described for t_alloc(). struct_type identifies the type of that structure which must be one of the following: T_BIND struct t_bind T_CALL struc... |
t_getinfo(3) -- get protocol-specific service information
|
The t_getinfo() function returns the current characteristics of the underlying transport protocol associated with file descriptor fd. The info structure is used to return the same information returned by t_open(). This function enables a transport user to access this information during any phase of communication. This argument points to a t_info structure which contains the following members: t_sc... |
t_getprotaddr(3) -- get the protocol address
|
The t_getprotaddr() function returns local and remote protocol addresses currently associated with the transport endpoint specified by fd. In boundaddr and peeraddr the user specifies maxlen, which is the maximum size of the address buffer, and buf which points to the buffer where the address is to be placed. On return, the buf field of boundaddr points to the address, if any, currently bound to f... |
t_getstate(3) -- get the current state
|
The t_getstate() function returns the current state of the provider as seen by the application associated with the transport endpoint specified by fd. |
t_listen(3) -- listen for a connect request
|
The t_listen() function listens for a connect request from a calling transport user. fd identifies the local transport endpoint where connect indications arrive. On return, call contains information describing the connect indication. The parameter call points to a t_call structure which contains the following members: struct netbuf addr; struct netbuf opt; struct netbuf udata; int sequence; The ty... |
t_look(3) -- look at the current event on a transport endpoint
|
The t_look() function returns the current event on the transport endpoint specified by fd. This function enables a transport provider to notify a transport user of an asynchronous event when the user is calling functions in synchronous mode. Certain events require immediate notification of the user and are indicated by a specific error, [TLOOK], on the current or next function to be executed. This... |
t_open(3) -- establish a transport endpoint
|
The t_open() function must be called as the first step in the initialization of a transport endpoint. This function establishes a transport endpoint by opening a file that identifies a particular transport provider and returning a file descriptor that identifies that endpoint. The argument name points to a file name that identifies a transport provider. When using HP XTI to connect to the OSI prot... |
t_optmgmt(3) -- manage options for a transport endpoint
|
The t_optmgmt() function enables a transport user to retrieve, verify or negotiate protocol options with the transport provider. The argument fd identifies a bound transport endpoint. The req and ret arguments point to a t_optmgmt structure containing the following members: struct netbuf opt; t_scalar_t flags; The opt field identifies protocol options. The flags field is used to specify the action... |
t_rcv(3) -- receive data or expedited data sent over a connection
|
The t_rcv() function receives either normal or expedited data. fd identifies the local transport endpoint through which data will arrive. buf points to a receive buffer where user data will be placed. nbytes specifies the size of the receive buffer. flags may be set on return from t_rcv() and specifies optional flags as described below. By default, t_rcv() operates in synchronous mode and will wai... |
t_rcvconnect(3) -- receive the confirmation from a connect request
|
The t_rcvconnect() function enables a calling transport user to determine the status of a previously sent connect request. t_rcvconnect() is also used in conjunction with t_connect() to establish a connection in asynchronous mode. The connection will be established on successful completion of this function. fd identifies the local transport endpoint where communication will be established. call co... |
t_rcvdis(3) -- retrieve information from disconnect
|
The t_rcvdis() function is used to identify the cause of a disconnect, and to retrieve any user data sent with the disconnect. fd identifies the local transport endpoint where the connection existed. discon points to a t_discon structure containing the following members: struct netbuf udata; int reason; int sequence; The type netbuf structure is defined in the or header file. Th... |
t_rcvrel(3) -- acknowledge receipt of an orderly release indication at a transport endpoint
|
The t_rcvrel() function is used in connection-oriented mode to acknowledge receipt of an orderly release indication at a transport endpoint. The released endpoint is specified by fd, which is a file descriptor previously returned by the t_open() function. After receipt of this orderly release indication at the transport endpoint specified by fd, the transport user should not try to receive additio... |