HP X.25/9000 Programmer's Guide

Chapter 6 91
Extended Features
Using Facilities
sd Socket descriptor for a VC socket that has just received a CALL
INDICATION, CALL CONNECTED, or CLEAR INDICATION packet.
X25_RD_FACILITIE
S
Definition for the request.
fac_data Indicates the facilities from the packet received. The
x25_fac[]
field
contains the facilities in the format that is required by the X.25
recommendations.
NOTE If the ioctl(X25_RD_FACILITIES) call is issued before the connection is
initiated, the ioctl() system call will fail, –1 is returned and
errno
contains an indication of the cause of the error.
The ioctl (X25_WR_FACILITIES) Call
When the ioctl(X25_WR_FACILITIES) call is issued it writes the
contents of the facilities field for the next transmitted CALL REQUEST
and CALL ACCEPTED packets. For a call to be accepted on the server
side of a connection with the ioctl() call, call acceptance approval must
be in effect. On the client side of the connection, you must issue the
ioctl(X25_WR_FACILITIES) call prior to the connect() call.
When you use the ioctl(X25_WR_FACILITIES) call:
you can only write facilities data for the next outbound CALL
REQUEST, CALL ACCEPTED or CLEAR REQUEST packet,
you override any inbound facilities data that has not already been
read,
you must specify all of the default settings in order to modify any of
the default facilities.
If no facilities are specified with the ioctl(X25_WR_FACILITIES) call,
the default configuration is set.
The ioctl(X25_WR_FACILITIES) call will overwrite any inbound
facilities data that has not already been read.
It is possible to modify facilities such as negotiated parameters. facilities
may be added, deleted, or rearranged by the network provider or packet
switching equipment.
36960-90061.bk Page 91 Friday, November 10, 2000 3:42 PM