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

CPI-C Calls
Set_Send_Type (cmsst)
Chapter 3 285
Set_Send_Type (cmsst)
The Set_Send_Type call specifies how data will be sent by the next
Send_Data call. It overrides the default send type established by the
Initialize_Conversation or Accept_Conversation call. The default send
type is CM_BUFFER_DATA, indicating that data only (and no control
information) is to be sent.
The send type value affects all subsequent Send_Data calls. It can be
changed by issuing the Set_Send_Type call again.
Function Call
void cmsst (
unsigned char CM_PTR conversation_ID,
CM_SEND_TYPE CM_PTR send_type,
CM_RETURN_CODE CM_PTR return_code
);
Function Call for Java CPI-C
public native void cmsst (
byte[] conversation_ID,
CPICSendType send_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.
send_type
This parameter specifies how data is to be sent by
subsequent Send_Data calls. Possible values are:
CM_BUFFER_DATA The data pointed to by the
Send_Data call is stored in a buffer
until the buffer fills up or is flushed.