ACC X.25 Protocol User's Guide

X.25 Application Programming
Sending and Receiving Data
Chapter 476
case ZCOM_MSTYPE_RSLT: /* (6) Status from local VC ZLU (terminal) */
{
if (msghdr.mrq.mrqcode == ZCOM_MRQCODE_STATUS) /* Unsolicited Status */
{
switch (msghdr.mrq.mrqstat)
{
case ST26INTPT: /* Inbound Interrupt (rdata has interrupt data) */
case ST26ICONF: /* Transmitted Interrupt confirmation received */
case ST26LCENB: /* VC has been enabled. */
case ST26LCUP: /* VC is now up. Ready for data transfer. */
case ST26LCDN: /* VC is now down. E.g. Call clear is done. */
case ST26CLRCF: /* Inbound call. rdata has call packet data. */
case ST26LCRSR: /* Inbound Reset. rdata has cause and diag codes */
case ST26LCRST: /* Inbound Reset Confirmation. */
case ST26LCCLR: /* Inbound Clear. rdata has clear packet data. */
case ST26LCCLC: /* Inbound Call Accept. rdata has call accept pkt */
case ZxRESET_TO: /* Reset Request has timed out. */
case ZxCLR_CONF: /* Clear Confirm. rdata has confirm packet data. */
/* For each case, add appropriate code to handle event */
} /* End of inner Switch */
} /* End of MRQCODE_STATUS If */
else if (msghdr.mrq.mrqcode == ZCOM_MRQCODE_WRITE)
{ /* Buffer completion status */
/* Most likely, a zsend request failed - handle error */
}
break;
}
} /* End of Switch */
} /* End of While-loop. */