Converts a set of streamio operations into STREAMS messages.
The timod module is a STREAMS module for use with the Transport Interface (TI) functions of the Network Services Library. The timod module converts a set of streamio operations into STREAMS messages that may be consumed by a transport protocol provider that supports the Transport Interface. This allows a user to initiate certain TI functions as atomic operations.
The timod module must only be pushed (see "Pushable Modules" in AIX 5L Version 5.1 Communications Programming Concepts) onto a stream terminated by a transport protocol provider that supports the TI.
All STREAMS messages, with the exception of the message types generated from the streamio operations described below as values for the cmd field, will be transparently passed to the neighboring STREAMS module or driver. The messages generated from the following streamio operations are recognized and processed by the timod module.
The fields are described as
|cmd||Specifies the command to be carried out. The possible values for
this field are:
|len||(On issuance) Specifies the size of the appropriate TI message to be sent to the transport provider.|
|dp||Specifies a pointer to a buffer large enough to hold the contents of the appropriate TI messages. The TI message types are defined in the sys/tihdr.h file.|
The following is an example of how to use the timod module:
#include <sys/stropts.h> - - struct strioctl strioctl; strucu t_info info; - - strioctl.ic_cmd = TI_GETINFO; strioctl.ic_timeout = INFTIM; strioctl.ic_len = sizeof (info); strioctl.ic_dp = (char *)&info; ioctl(fildes, I_STR, &strioctl);
This module is part of STREAMS Kernel Extensions.
The tirdwr module.
The streamio operations.
Benefits and Features of STREAMS, Building STREAMS, Pushable Modules, Understanding STREAMS Drivers and Modules, Understanding STREAMS Messages, Using STREAMS in AIX 5L Version 5.1 Communications Programming Concepts.