Specify_Local_TP_Name

The Specify_Local_TP_Name call (function name cmsltp) is issued by the program to indicate that it is able to accept incoming conversations that are directed to the name given.

CM_ENTRY Specify_Local_TP_Name(
  unsigned char FAR *TP_name,  
  CM_INT32 FAR *TP_name_length,  
  CM_INT32 FAR *return_code  
);
 

Parameters

TP_name
Supplied parameter. Specifies the starting address of the local TP name. The program name can contain up to 64 ASCII characters. The allowed characters are:

You cannot use Specify_Local_TP_Name to specify the name of an SNA service TP.

Double-byte character sets, such as Kanji, are not supported.

TP_name_length
Supplied parameter. Specifies the length of the local program name. The range is from 1 through 64.
return_code
The code returned from this call. The valid return codes are listed below.

Return Codes

cm_ok
Primary return code; the call executed successfully.
cm_program_parameter_check
Primary return code; one of the following occurred:
cm_product_specific_error
Primary return code; a product-specific error occurred and has been logged in the product's error log.

State Changes

The call is not associated with a particular conversation, and so no state restrictions apply.

There is no state change.

Remarks

A program can issue this call more than once to handle incoming conversations with more than one TP name. The program can discover the actual name on the incoming conversation by calling Extract_TP_Name.