LU 6.2 API Application Programmer's Reference Guide (30294-90008)

32 Chapter2
Conversations
Establishing Conversations
Establishing Conversations
TP conversations can be locally initiated (initiated by the TP on the
HP 3000), or remotely initiated (initiated by the TP on the remote
system). This section describes the tasks that the local application
programmer, the node manager, and the remote application
programmer must perform in order to establish a locally or remotely
initiated conversation.
Locally Initiated Conversations
The following things must occur for a local TP to initiate a conversation:
1. An APPC session of the appropriate session type must be
established.
2. A local end user must run the local TP.
3. The local TP must send an allocate request over the session assigned
to it, to request a conversation with the remote TP.
4. The remote TP must be coded to receive the allocate request from
the local TP.
Note that the session must be established before the local TP can use it
to send the allocate request. This section describes the tasks that the
local application programmer and the node manager must perform in
order to establish a locally initiated conversation.
Local Programmer Tasks
To prepare for a locally initiated conversation, you must do the
following:
1. Work with the programmer on the remote system to design and code
the TP.
2. Ask the node manager for the name of an appropriately configured
session type, or ask the node manager to configure a session type for
the conversation. The session type must direct data to the remote
LU that serves the remote TP.
3. Code the name of the session type into the
SessionType
parameter
of the MCAllocate intrinsic.
Node Manager Tasks
To prepare for a locally initiated conversation, the node manager must
do the following: