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

Chapter 5 123
Intrinsic Descriptions
MCTest
MCTest
Tests the specified for the receipt of information.
Syntax
I16V I16V I32 I16
MCTest(
ResourceID
, [
Test
],
Status
, [
PostedType
]);
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.
Test
16-bit signed integer by value; input. This parameter
specifies whether to look for information waiting in the
receive buffer or to check for a RequestToSend indicator
sent from the remote TP.
0 = POSTED
Tests for information waiting in the receive buffer. The
value returned in the
Status
parameter indicates the
result of the test, as follows:
1 = REQUEST_TO_SEND_RECEIVED
Tests for the receipt of a RequestToSend indicator from
the remote TP. The value returned in the
Status
parameter indicates the result of the test, as follows:
Default: 0 (POSTED)
status info
value
meaning
0 Something is waiting in the receive buffer.
-37 Posting is not active. (See MCPostOnRcpt.
+38 Nothing is waiting in the receive buffer.
statusinfo
value
meaning
0ARequestToSend indicator has been received.
+36 No RequestToSend indicator has bee received.