Important: The information in this document is obsolete and should not be used for new development.
PRelRspCB
ThePRelRspCBfunction cancels aPSendResponsefunction that is an exactly-once transaction.
FUNCTION PRelRspCB (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 the completion routine. <-- ioResult OSErr The function result. --> csCode Integer Always relRspCBfor this function.--> atpSocket Byte The number of the socket on which the request was received. --> addrBlock AddrBlock The internet socket address of the source
of the request.--> transID Byte The transaction ID of the request with which the PSendResponsefunction to
be canceled is associated.
Field Description
atpSocket- The number of the socket on which the request was received and from which the
PSendResponsefunction that is to be canceled was sent.addrBlock- The internet socket address of the application that issued
the request.transID- The transaction ID of the
PSendResponsecall to be canceled.
You can get the transaction ID from thereqTIDfield of thePSendResponseparameter block queue entry.DESCRIPTION
ThePRelRspCBfunction releases the queued parameter block for the exactly-once transactionPSendResponsefunction without waiting for the release timer to expire
or for aTRelpacket to be received;PRelRspCBreturns a function result ofnoErr
for the canceledPSendResponsecall.If you call
PRelRspCBto cancel a transaction that is not an exactly-once service,RelRspCBreturns a function result ofcbNotFoundfor thePSendResponsecall.ASSEMBLY-LANGUAGE INFORMATION
To execute thePRelRspCBfunction from assembly language, call the_Controltrap macro with a value ofrelRspCBin 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 Control block not found; no pending asynchronous calls