Allows the LU to check the contents of the receive buffer
for the specified conversation.
Description |
 |
The MCPostOnRcpt intrinsic causes LU 6.2 API to set up resources
to check the contents of the receive buffer for the specified conversation. The MCTest or MCWait intrinsic can then be called to interrogate these resources
and find out if any data has arrived for the conversation. See the
descriptions of MCTest and MCWait, later in this chapter.
Once MCPostOnRcpt has executed successfully, posting is active.
It remains active until something is received into the receive buffer
or an intrinsic is called that ends posting and releases the resources.
The following intrinsics end posting:
MCDeallocate
MCRcvAndWait
MCRcvNoWait
MCSendError
|
When the MCTest or MCWait intrinsic indicates that something is waiting
in the receive buffer, call MCRcvAndWait or MCRcvNoWait with the same Data parameter you used in the last call to MCPostOnRcpt.
The MCPostOnRcpt intrinsic can be called only from Receive state.
It can be called many times during the execution of a TP. If the Length parameter is changed from one call to the next, the Length value from the last call will be used to determine
the minimum amount of data that must arrive before the TP is notified.