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

CPI-C Calls
Set_Error_Direction (cmsed)
Chapter 3256
Set_Error_Direction (cmsed)
The Set_Error_Direction call specifies whether a program detected an
error while receiving data or while preparing to send data. This call
overrides the default error direction established by the
Initialize_Conversation or Accept_Conversation call. The default error
direction is CM_RECEIVE_ERROR.
Error direction is relevant only when a program issues the Send_Error
call in Send-Pending state immediately after issuing the Receive call and
receiving data (
data_received
is a value other than
CM_NO_DATA_RECEIVED) and a send indicator (
status_received
=
CM_SEND_RECEIVED).
Function Call
void cmsed (
unsigned char CM_PTR conversation_ID,
CM_ERROR_DIRECTION CM_PTR error_direction,
CM_RETURN_CODE CM_PTR return_code
);
Function Call for Java CPI-C
public native void cmsed (
byte[] conversation_ID,
CPICErrorDirection error_direction,
CPICReturnCode return_code
);
Supplied Parameters
The supplied parameters are:
conversation_ID
This is the identifier for the conversation. The value of
this parameter is returned by the
Initialize_Conversation, Initialize_For_Incoming, or
Accept_Conversation call.
error_direction
This parameter specifies the direction in which data
was flowing when the program encountered an error.
Possible values are: