Important: The information in this document is obsolete and should not be used for new development.
ATPKillAllGetReq
TheATPKillAllGetReqfunction cancels all pending calls to thePGetRequestfunction for a specific socket.
FUNCTION ATPKillAllGetReq (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 killAllGetReqfor this function.--> atpSocket Byte The socket number whose pending PGetRequestfunctions are to be canceled.
Field Description
atpSocket- The socket whose pending
PGetRequestfunctions are to
be canceled.DESCRIPTION
TheATPKillAllGetReqfunction cancels all pendingPGetRequestfunctions issued on a specific socket without closing the socket. For each function executed asynchro-
nously,ATPKillAllGetReqalso calls the completion routine with the valuereqAborted(-1105) in the D0 register. You should call theATPKillAllGetReqfunction before closing a socket.ASSEMBLY-LANGUAGE INFORMATION
To execute theATPKillAllGetReqfunction from assembly language, call the_Controltrap macro with a value ofkillAllGetReqin 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