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

CPI-C Calls
Set_Fill (cmsf)
Chapter 3 259
Set_Fill (cmsf)
The Set_Fill call specifies whether programs will receive data in the form
of logical records or as a specified length of data. This call is allowed only
in basic conversations. It overrides the default fill established by the
Initialize_Conversation or Accept_Conversation call. The default fill is
CM_FILL_LL.
The fill value affects all subsequent Receive calls. It can be changed by
issuing the Set_Fill call again.
Function Call
void cmsf (
unsigned char CM_PTR conversation_ID,
CM_FILL CM_PTR fill,
CM_RETURN_CODE CM_PTR return_code
);
Function Call for Java CPI-C
public native void cmsf (
byte[] conversation_ID,
CPICFill fill,
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.
fill
This parameter specifies the form in which programs
will receive data. Possible values are:
CM_FILL_BUFFER The local program receives data until
the number of bytes specified by the
requested_length
parameter of the
Receive call is reached, or until the