Important: The information in this document is obsolete and should not be used for new development.
Canceling an ATP Function
You can cancel all pending ATP function calls made on a specific socket by closing the socket. However, ATP provides functions that allow you to cancel individual function calls or all function calls of a particular kind. If you want to close a socket for which there are still pending requests that you don't want executed, you should first explicitly cancel those requests by using the ATP function provided for this purpose, instead of simply closing the socket.You can use the following functions to cancel specific requests:
- To cancel a
PGetRequestfunction, use thePKillGetReqfunction, which is described on page 6-41. You identify the request to be canceled by specifying
the pointer to the parameter block that you passed to thePGetRequestfunction
when you called it.- To cancel all pending
PGetRequestfunctions on a certain socket, use theATPKillAllGetReqfunction described on page 6-42; you specify the socket number, whose pending get requests you want to cancel, as the value of theatpSocketparameter.- To cancel a
PSendRequest or aPNSendRequestfunction, use thePKillSendReqfunction described beginning on page 6-38. You identify the request to be canceled
by specifying the pointer to the parameter block that you passed to the function
when you issued it. To cancel aPSendRequestfunction, use thePRelTCBfunction described beginning on page 6-40. You identify the request to be canceled by specifying the request transaction ID as thetransIDparameter and the destination socket of the request as theaddrBlockparameter.- To cancel an exactly-once
PSendResponsefunction, use thePRelRspCBfunction, described beginning on page 6-43. You identify the request to be canceled by specifying the transaction ID of the associated request as thetransIDparameter and thePSendResponsedestination socket number as theatpSocketparameter.