HP-UX SNAplus2 CPI-C Programmer's Guide (June 2003)
CPI-C Calls
Set_Receive_Type (cmsrt)
Chapter 3280
Set_Receive_Type (cmsrt)
The Set_Receive_Type call specifies how the program will receive data on
subsequent Receive calls. It overrides the default receive type
established by the Initialize_Conversation or Accept_Conversation call.
By default, the program waits for data to arrive if it is not available
when the Receive call is issued.
The receive type value affects all subsequent Receive calls. It can be
changed by issuing the Set_Receive_Type call again.
Function Call
void cmsrt (
unsigned char CM_PTR conversation_ID,
CM_RECEIVE_TYPE CM_PTR receive_type,
CM_RETURN_CODE CM_PTR return_code
);
Function Call for Java CPI-C
public native void cmsrt (
byte[] conversation_ID,
CPICReceiveType receive_type,
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.
receive_type
This parameter specifies how data is to be received by
the program on the subsequent Receive calls. Possible
values are: