HP-UX SNAplus2 CPI-C Programmer's Guide (June 2003)

CPI-C Calls
Receive (cmrcv)
Chapter 3 207
Call Issued in Receive State
The state changes shown in Table 3-7, State Changes When the Receive
Call Is Issued in Receive State, can occur when the Receive call is issued
with the conversation in Receive state and the
return_code
is CM_OK.
If
return_code
is set to CM_UNSUCCESSFUL, meaning that the
receive_type
is set to CM_RECEIVE_IMMEDIATE and no data is
available, there is no state change.
Call Issued in Send State
The state changes shown in Table 3-8, State Changes When the Receive
Call Is Issued in Send State, can occur when the Receive call is issued
with the conversation in Send state and the
return_code
is CM_OK.
Table 3-7 State Changes When the Receive Call Is Issued in Receive State
data_received status_received
New
state
CM_DATA_RECEIVED
CM_COMPLETE_DATA_RECEIVED
CM_INCOMPLETE_DATA_RECEIV
ED
CM_NO_STATUS_RECEIVE
D
No
change
CM_DATA_RECEIVED
CM_COMPLETE_DATA_RECEIVED
CM_SEND_RECEIVED Send-Pe
nding
CM_NO_DATA_RECEIVED CM_SEND_RECEIVED Send
Table 3-8 State Changes When the Receive Call Is Issued in Send State
data_received status_received
New state
CM_DATA_RECEIVED
CM_COMPLETE_DATA_RECEIVE
D
CM_INCOMPLETE_DATA_RECEI
VED
CM_NO_STATUS_RECEIV
ED
Receive
CM_DATA_RECEIVED
CM_COMPLETE_DATA_RECEIVE
D
CM_SEND_RECEIVED Send-Pendi
ng