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

CPI-C Calls
Confirmed (cmcfmd)
Chapter 3 141
CM_PROGRAM_PARAMETER_CHECK The value specified by
conversation_ID
is not valid.
CM_PROGRAM_STATE_CHECK When the program issued
this call the conversation was not in
Confirm, Confirm-Send, or
Confirm-Deallocate state.
For an explanation of the following return codes, see
Appendix A, “Common Return Codes.
CM_OPERATION_INCOMPLETE
CM_OPERATION_NOT_ACCEPTED
CM_PRODUCT_SPECIFIC_ERROR
State When Issued
The conversation must be in one of the following states when the
program issues this call:
Confirm
Confirm-Send
Confirm-Deallocate
State Change
The new state is determined by the old state: the state of the
conversation when the local program issued the Confirmed call. The old
state is indicated by the value of the
status_received
parameter of the
preceding Receive call. Table 3-3, State Changes for the Confirmed Call,
summarizes the possible state changes when
return_code
is set to
CM_OK.
Other return codes result in no state change.
Table 3-3 State Changes for the Confirmed Call
Old state New state
Confirm Receive
Confirm-Send Send
Confirm-Deallocate Reset