HP X.25/9000 Programmer's Guide

62 Chapter4
Sending and Receiving Data
Getting Next Message Status
status Indicates the current status of the next message. If
status.x25_msg_size
is 0, there is no message in the queue. Otherwise,
it indicates the size of the next message or the next fragment of a
message to be read. This is useful to ensure that there is enough buffer
space for the next read() system call. The
status.x25_msg_flags
field
indicates whether the D or Q bits were set in the next message to be
read. The
status.x25_msg_flags
field also indicates if the next
fragment is the last fragment in the message.
The M bit was set in the last packet of the last message fragment read
(this means that this is a continuation of the previous message
fragment). The position of these bits in the field are indicated by the
X25_MDTF_BIT
,
X25_D_BIT
, and
X25_Q_BIT
definitions.
err On successful completion,
err
is set to 0. Otherwise, a value of –1 is
returned and
errno
is set to indicate the error.
36960-90061.bk Page 62 Friday, November 10, 2000 3:42 PM