Important: The information in this document is obsolete and should not be used for new development.
PRelTCB
ThePRelTCBfunction cancels the pendingPSendRequestfunction that you specify.
FUNCTION PRelTCB (thePBPtr: ATPPBPtr; async: Boolean): OSErr;
thePBPtr- A pointer to an ATP parameter block.
async- A Boolean that indicates whether the function should be executed asynchronously or synchronously. Specify
TRUEfor asynchronous execution.
--> ioCompletion ProcPtr A pointer to a completion routine. <-- ioResult OSErr The function result. --> csCode Integer Always relTCBfor this function.--> addrBlock AddrBlock The destination socket address. --> transID Integer The transaction ID of the request
to be canceled.
Field Description
addrBlock- The AppleTalk internet address of the destination socket for which the
PSendRequestfunction that is to be canceled was meant.transID- The transaction ID of the
PSendRequestfunction to be canceled. You can get the transaction ID from thereqTIDfield of thePSendRequestparameter block queue entry.DESCRIPTION
ThePRelTCBfunction releases the queued parameter block for thePSendRequestfunction whose transaction ID you specify. ThePRelTCBfunction returns a function result ofreqAbortedfor the canceledPSendRequestfunction.SPECIAL CONSIDERATIONS
You cannot use this function to cancel a send request that you made using thePNSendRequestfunction.ASSEMBLY-LANGUAGE INFORMATION
To execute thePRelTCBfunction from assembly language, call the_Controltrap macro with a value ofrelTCBin thecsCodefield of the parameter block. To
execute this function from assembly language, you must also specify the .ATP
driver reference number.RESULT CODES
noErr 0 No error cbNotFound -1102 The ATP control block was not found noDataArea -1104 Too many outstanding ATP functions