A message of type ZCOM_MSTYPE_MSLT(1), or ZCOM_MSTYPE_MSRT(9)
obtained from a read via zread or zpeek is typically delivering
data which has been received by an ACC card from the network.
A message of type ZCOM_MSTYPE_RSLT(6), or ZCOM_MSTYPE_RSRT(14)
obtained from a read via zread or zpeek is delivering status information
concerning either a previous request handed to ZCOM (the MRQCODE
field of the message header will contain ZCOM_MRQCODE_WRITE or ZCOM_MRQCODE_CNTWR)
or an event which has been detected by an ACC card (the MRQCODE
field of the message header will contain ZCOM_MRQCODE_STATUS).
The status delivered with request codes ZCOM_MRQCODE_WRITE
and ZCOM_MRQCODE_CNTWR (in the MRQSTAT field of the message header)
should be examined to determine whether the previous request was
successful. A status of zero indicates that a previous request completed
with no other circumstances detected. If a non-zero status is detected,
the actual condition can be determined by the value of the status
and the request code (zcomstatus() may
be used to obtain a text form of the status code).
The status delivered with request code ZCOM_MRQCODE_STATUS should
be examined to determine what has occurred. A status of zero indicates
that the communications link is operating correctly (this may occur
when a connection is first enabled or after an error condition has been
cleared). If a non-zero status is detected, the actual condition
can be determined by the value of the status (zcomstatus() may
be used to obtain a text form of the status code).