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

Chapter 5 81
Intrinsic Descriptions
MCConfirm
MCConfirm
Sends a confirmation request to the remote program and waits for a
reply. A status info value of 0 indicates that the remote TP has returned
a positive confirmation response (the equivalent of an MCConfirmed).
Syntax
I16V I16 I32
MCConfirm (
ResourceID
,
RequestToSendReceived
,
Status
);
Parameters
ResourceID
Required; 16-bit signed integer by value; input. This is
the unique resource ID number assigned to this
conversation when it was allocated. See MCAllocate or
MCGetAllocate, in this chapter, for more information.
RequestToSendReceived
Required; 16-bit signed integer; output. This is a flag
that indicates whether a RequestToSend notification
has been received from the remote TP.
1 = YES
A RequestToSend notification has been received from
the remote TP. The remote TP has issued the
equivalent of MCReqToSend, requesting that the local
TP enter Receive state and place the remote TP in Send
state. See the description of the MCReqToSend intrinsic,
later in this chapter.
0 = NO
No RequestToSend notification has been received.
Status
Required; 32-bit signed integer; output. Indicates the
result of intrinsic execution. See the “Status
Parameter” section, earlier in this chapter, for more
information.
Description
The MCConfirm intrinsic is used to determine whether the two sides of a
conversation are synchronized. It can be used only if the conversation is
allocated with a synchronization level of CONFIRM (that is, if the