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

Chapter 5 121
Intrinsic Descriptions
MCSendError
MCSendError
Informs the remote TP that the local TP has detected an error in an
application. Places the remote TP in Receive state and the local TP in
Send state.
Syntax
I16V I16 I32
MCSendError(
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. Indicates
whether the remote TP has issued a RequestToSend.
Possible values are as follows:
1 = YES
Indicates a RequestToSend has been received from the
remote TP. The remote TP has issued the equivalent of
the MCReqToSend intrinsic, requesting that the local TP
enter Receive state and place the remote TP in Send
state.
0 = NO
No RequestToSend 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 MCSendError intrinsic informs the remote TP that the local TP has
detected an application error and is unable to receive any further
information. It can be called from any state except Deallocate state or
Reset state. Successful execution of this intrinsic places the remote TP