Previous Page Contents Page Next Page

2.3 Side Information

The information required for two programs to communicate is stored in CPI-C side information entries in the SNAP-IX configuration file. You will need to coordinate with your System Administrator to ensure that it contains what you need. For additional information about configuration, refer to the SNAP-IX Administration Guide.

Each side information entry is identified by a Symbolic Destination Name, which is the sym_dest_name parameter specified by the Initialize_Conversation call. The parameter sym_dest_name is an 8-byte ASCII character string and can contain any displayable characters.

If you are developing commercial programs or programs that will be installed on multiple machines within your organization, you may want to include logic to use a different sym_dest_name for each copy of the program.

Each side information entry contains the following fields:

2.3.1 Local LU Alias

This is the alias of the local LU to be used to allocate conversations. It consists of up to eight ASCII characters. For the allowed characters, see Set_Local_LU_Name (cmslln).

2.3.2 Partner LU Name

This is the name by which the partner LU is known to the local program. It can be an alias of up to eight ASCII characters or a fully qualified network name of up to 17 characters. For the allowed characters, see Set_Partner_LU_Name (cmspln).

2.3.3 Partner Program Type and Name

These fields indicate whether the partner program is an application program or SNA service program, and the partner program name. An application program name can contain up to 64 ASCII characters. A service program can contain up to four characters. For the allowed characters, see Set_TP_Name (cmstpn).

2.3.4 Mode Name

This name represents a set of characteristics to be used in an LU-to-LU session. The mode name can contain up to eight ASCII characters. For the allowed characters, see Set_Mode_Name (cmsmn).

2.3.5 Conversation Security Type

This field indicates whether security will be used and if so, what type. The security type can specify that CPI-C must send a user ID and password when allocating a conversation with the invoked program. For an invoked program that in turn invokes another program, the security type can inform the second invoked program that security has already been verified.

For further information about conversation security, see Set_Conversation_Security_Type (cmscst).

2.3.6 Security User ID and Password

If the remote program uses conversation security, and does not accept an already verified indication, a valid combination of user ID and password is required to access the invoked program. The user ID and password can be up to 10 ASCII characters. For the allowed characters, see Set_Conversation_Security_User_ID (cmscsu) and Set_Conversation_Security_Password (cmscsp).

2.3.7 Application-Specified Side Information

Note

The functions described in this section are not available in Java CPI-C. A Java CPI-C application cannot maintain its own CPI-C side information entries. However, it can override individual parameters in the side information, or determine their values, by using Set_* or Extract_* functions for each required parameter.

An application can override the side information stored in the configuration file to maintain its own side information entries, using the following calls:

The modified information then applies only to this application; it does not affect other applications, and does not change the configuration file. The modified information is discarded when the application ends.

These calls are not part of IBM CPI-C 2.0; they are provided for compatibility with X/Open CPI-C. In addition, in the side information structure used by these calls, the user ID and password parameters are defined as eight characters (as in X/Open CPI-C) instead of 10 (as in IBM CPI-C 2.0). This leads to the following restrictions:

Previous Page Contents Page Top of Page Next page