DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

tirdwr(M)


tirdwr -- Transport Layer Interface read/write interface STREAMS module

Syntax

#include <stropts.h>

Description

tirdwr is a STREAMS module that provides an alternate interface to a transport provider which supports the Transport Layer Interface (TLI) functions (see Intro(NET) and the Network Programming Interfaces). This alternate interface allows a user to communicate with the transport protocol provider using the read(S) and write(S) system calls. The putmsg(S) and getmsg(S) system calls may also be used. However, putmsg and getmsg can only transfer data messages between user and stream.

The tirdwr module must only be pushed (see I_PUSH in streamio(M)) onto a stream terminated by a transport protocol provider which supports the TLI. After the tirdwr module has been pushed onto a stream, none of the Transport Layer Interface functions can be used. Subsequent calls to TLI functions will cause an error on the stream. Once the error is detected, subsequent system calls on the stream will return an error with errno set to EPROTO.

The following are the actions taken by the tirdwr module when pushed on the stream, popped (see I_POP in streamio(M)) off the stream, or when data passes through it.


push
When the module is pushed onto a stream, it will check any existing data destined for the user to ensure that only regular data messages are present. It will ignore any messages on the stream that relate to process management, such as messages that generate signals to the user processes associated with the stream. If any other messages are present, the I_PUSH will return an error with errno set to EPROTO.

write
The module will take the following actions on data that originated from a write system call:

read
The module will take the following actions on data that originated from the transport protocol provider:

pop
When the module is popped off the stream or the stream is closed and an orderly release indication has been received previously, an orderly release request will be sent to the remote side of the transport connection.

Limitations

The NUMTRW kernel parameter limits the number of tirdwr modules that can be pushed.

See also

streamio(M), timod(M), Intro(S), getmsg(S), putmsg(S), read(S), write(S)

AT&T STREAMS Primer
AT&T STREAMS Programmer's Guide


© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003