Important: The information in this document is obsolete and should not be used for new development.
PKillGetReq
ThePKillGetReqfunction cancels the pendingPGetRequestfunction that
you specify.
FUNCTION PKillGetReq (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 killGetReqfor this function.--> aKillQEl Pointer A pointer to the queue element
Field Description
aKillQEl- A pointer to the queue element of the pending call that is to
be canceled.DESCRIPTION
ThePKillGetReqfunction lets you cancel a specific outstandingPGetRequestfunction without having to cancel all pending get requests or having to close the
socket to do this; closing the socket cancels all outstanding functions on that socket.To cancel a specific pending
PGetRequestfunction, you specify the pointer to the queue element for the function in theaKillQElfield of the parameter block for thePKillGetReqfunction. The queue element pointer is the pointer to the parameter block of thePGetRequestfunction to be canceled. If the function has already completed execution or if it is not in the ATP queue for any other reason,PKillGetReqreturns a message (cbNotFound) indicating that it could not find the parameter block.ASSEMBLY-LANGUAGE INFORMATION
To execute thePKillGetReqfunction from assembly language, call the_Controltrap macro with a value ofkillGetReqin 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 aKilllQElparameter does not point to aPGetRequestqueue element