|
|
|
|
The Set_Mode_Name call is issued by the invoking program to specify the mode name for a conversation. This call overrides the system-defined mode name derived from the side information when the Initialize_Conversation call was issued. This call cannot be issued after the Allocate has been issued. Issuing this call has no effect on the side information itself.
void cmsmn (
unsigned char CM_PTR conversation_ID,
unsigned char CM_PTR mode_name,
CM_INT32 CM_PTR mode_name_length,
CM_RETURN_CODE CM_PTR return_code
);
public native void cmsmn (
byte[] conversation_ID,
byte[] mode_name,
CPICLength mode_name_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 call.
This parameter specifies the starting address of the mode name (the name of a set of networking characteristics defined during configuration). The mode name can contain up to eight ASCII characters. The following characters are allowed:
Uppercase letters
Numerals 0-9
The value of mode_name must match the name of a mode associated with the partner LU during configuration.
For a mapped conversation, the mode name SNASVCMG is reserved for SNA internal use; the Allocate call will fail if you use this name. You are recommended not to use SNASVCMG in a basic conversation, or CPSVCMG (another SNA reserved name) in either type of conversation.
This parameter specifies the length of the mode name.
The range for this value is 0-8 bytes.
If mode_name_length is set to 0 (zero), the Set_Mode_Name call is ignored.
After the verb executes, SNAP-IX returns the following parameters:
Possible values are:
The call executed successfully.
The conversation is not in Initialize state.
One of the following has occurred:
The value specified by conversation_ID is not valid
The value specified by mode_name_length is out of range (greater than 8 or less than 0).
For an explanation of this return code, see Common Return Codes.
The conversation must be in Initialize state.
There is no state change.
If the return_code is not CM_OK , the mode_name conversation characteristic is unchanged.
Specifying a value for mode_name that is not valid (a name that is not permitted by the configuration file) is not detected until the Allocate call is issued.
|
|
|
|
|