HP X.25/9000 Programmer's Guide
Chapter 5 77
Receiving and Transmitting Out-of-band Information
Building a Signal Handler
The first two bytes of
buf[]
contain the buffer length and the event code
respectively. The third byte
(buf[2]
) contains the cause code. The fourth
byte (
buf[3])
contains the diagnostic code. If the diagnostic code was not
present in the packet, 0 is specified. The fifth byte (
buf[4])
contains the
reason the RESET INDICATION packet was sent. A 0 value indicates
that the RESET INDICATION packet was sent by the network provider.
Other values may be specified in the future.
After you have read the out-of-band data, you can start sending normal
data. The connection is then ready to send and receive more data.
Developers must provide a recovery mechanism to handle the loss of data
that can occur due to a RESET INDICATION.
OOB_VC_RESET_CONF
Confirmation to a previously-sent ioctl(X25_RESET_VC) was received
on a socket in nonblocking mode. This event can only be received on
sockets in nonblocking mode because in blocking mode the
ioctl(X25_RESET_VC) blocks until confirmation is received.
The first byte of the buffer contains the buffer length and the second byte
contains the event code.
36960-90061.bk Page 77 Friday, November 10, 2000 3:42 PM










