HP-UX SNAplus2 CPI-C Programmer's Guide (June 2003)
CPI-C Calls
Set_Error_Direction (cmsed)
Chapter 3 257
CM_RECEIVE_ERROR An error occurred in the data
received from the partner program.
CM_SEND_ERROR An error occurred while the local
program prepared to send data to the
partner program.
Returned Parameters
After the verb executes, SNAplus2 returns parameters to indicate
whether the execution was successful and, if not, to indicate the reason
the execution was unsuccessful.
return_code
Possible values are:
CM_OK The call executed successfully.
CM_PROGRAM_PARAMETER_CHECK The value specified by
conversation_ID
or
error_direction
is not valid.
CM_PRODUCT_SPECIFIC_ERROR For an explanation of
this return code, see Appendix A,
“Common Return Codes.”
State When Issued
The conversation can be in any state except Reset.
State Change
There is no state change.
Usage Notes
If the
return_code
is not CM_OK, the
error_direction
conversation
characteristic is unchanged.
When the conversation is in Send-Pending state, the program issues the
Send_Error call if it detects errors in the received data or if an error
occurred while the local program prepared to send data. The program
must supply the error direction information using the
Set_Error_Direction call before issuing the Send_Error call because the