|
|
|
|
The Set_Log_Data call specifies a log message (log data) and its length to be sent to the partner LU. This call is allowed only in basic conversations. It overrides the default log data, which is null, and the default log data length, which is 0 (zero).
void cmsld (
unsigned char CM_PTR conversation_ID,
unsigned char CM_PTR log_data,
CM_INT32 CM_PTR log_data_length,
CM_RETURN_CODE CM_PTR return_code
);
public native void cmsld (
byte[] conversation_ID,
byte[] log_data,
CPICLength log_data_length,
CPICReturnCode return_code
);
The supplied parameters are:
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.
Address of data buffer containing error information. This data is sent to the local error log and to the partner LU.
This parameter is used by the Send_Error call if log_data_length is greater than 0 (zero).
The program must format the error data as a General Data Stream (GDS) error log variable. For further information, refer to the IBM publication IBM Systems Network Architecture: LU 6.2 Reference: Peer Protocols.
This parameter specifies the length of the log data.
The range for this value is 0-512 bytes.
A length of 0 (zero) indicates that there is no log data. The log_data parameter is ignored, and the log_data conversation characteristic is set to a null string.
After the verb executes, SNAP-IX returns the following parameters:
Possible values are:
The call executed successfully.
One of the following has occurred:
The value specified by conversation_ID is not valid.
The conversation type is set to mapped.
The value specified by log_data_length is out of range (greater than 512 or less than 0).
For an explanation of this return code, see Common Return Codes.
The conversation can be in any state except Reset.
There is no state change.
If the return_code is not CM_OK , the log_data and log_data_length conversation characteristics are unchanged.
The log data specified by the Set_Log_Data call is sent to the partner LU when the local program issues one of the following calls:
Send_Error
Deallocate with the conversation's deallocate_type
set to
Send_Data with the conversation's send_type
set to
After sending the log data to the partner LU, the local LU resets the log data to null and the log data length to 0 (zero).
CPI-C automatically converts the log data from ASCII to EBCDIC as required.
|
|
|
|
|