HP-UX SNAplus2 CPI-C Programmer's Guide (June 2003)
CPI-C Calls
Send_Data (cmsend)
Chapter 3 219
CM_OK The call executed successfully.
CM_PROGRAM_PARAMETER_CHECK One of the following
has occurred:
• The value specified by
conversation_ID
is not valid
• The value specified by
send_length
is out of range
• This is a basic conversation, and
the first 2 bytes of the
buffer
parameter contain a logical
record length that is not valid
(0x0000, 0x0001, 0x8000, or
0x8001)
CM_PROGRAM_STATE_CHECK One of the following has
occurred:
• The conversation state is not
Send or Send-Pending.
• The basic conversation is in Send
state and the send type is set to
CM_SEND_AND_CONFIRM,
CM_SEND_AND_DEALLOCATE
, or
CM_SEND_AND_PREP_TO_RE
CEIVE. However, the data does
not end on a logical record
boundary. Send_Data can be
issued in the middle of a logical
record only when the send type is
set to
CM_SEND_AND_DEALLOCATE
, and the deallocate type is set to
CM_DEALLOCATE_ABEND.
For an explanation of the following return codes, see
Appendix A, “Common Return Codes.”
CM_CONVERSATION_TYPE_MISMATCH
CM_DEALLOCATED_ABEND
CM_DEALLOCATED_ABEND_SVC
CM_DEALLOCATED_ABEND_TIMER