What Is a Conversation?
The communication between TPs is called a conversation. Conversations occur across LU-LU sessions. A conversation starts when a TP issues an APPC verb or CPI-C call that allocates a conversation. The conversation style associated with the conversation indicates the style of data transfer to be used, two-way alternate or two-way simultaneous. A conversation that specifies a two-way alternate style of data transfer is also known as a half-duplex conversation. A conversation that specifies a two-way simultaneous style of data transfer is referred to as a full-duplex conversation.
When a half-duplex conversation is allocated to a session, a send-receive
relationship is established between the TPs connected to the conversation,
and a two-way alternate data transfer occurs where information is
transferred in both directions, one direction at a time. Like a telephone
conversation, one TP calls the other, and they converse
, one
TP talking at a time, until a TP ends the conversation. One TP issues
verbs to send data, and the other TP issues verbs to receive data.
When it finishes sending data, the sending TP can transfer send control
of the conversation to the receiving TP. One TP decides when to end
the conversation and informs the other when it has ended.
When a full-duplex conversation is allocated to a session, both TPs connected to the conversation are started in send-and-receive state, and a two-way simultaneous data transfer occurs where information is transferred in both directions at the same time. Both TPs may issue verbs to send and receive data simultaneously with no transfer of send control required. The conversation ends when both TPs indicate they are ready to stop sending data, and each TP has received the data sent by the partner. If an error condition occurs, one TP may decide to end both sides of the conversation abruptly.
Conversations can exchange control information and data. The TP should select the conversation style best suited for its application.