NIO CommKit Host Interface Installation and System Administration Manual

5-6
Programming with the CommKit Function Library
Making STREAMS-Based Outgoing Connections
Making STREAMS-Based Outgoing Connections
If you are porting an application from CommKit 3.2 to CommKit 4.x of the
NIO CommKit Host Interface, be aware that the method for specifying the
Datakit interface board number for the outgoing connection has changed. In
earlier releases, you specified the outgoing board number with the
bndcall->qlen parameter of the tbind() function call.
In CommKit 4.x however, you specify the outgoing connection with the
name argument of the t_open() function call. To use t_open(), enter a
function call in the following format:
int t_open (name, oflag, info)
For example, to use Datakit interface board 0, you could use the following
function call:
fd = topen ("/dev/dktp0", O_RDWR, NULL);
The name argument points to a device special file which identifies the
transport provider. The CommKit software has a separate device special file
for each Datakit interface board:
/dev/dktp0 for Datakit interface board 0
/dev/dktp1 for Datakit interface board 1, and so on
For more information on t_open(), refer to its online manual page.