Important: The information in this document is obsolete and should not be used for new development.
PCloseATPSkt
ThePCloseATPSkt
function closes a socket that was opened to receive ATP requests or to send requests over a specific socket.
FUNCTION PCloseATPSkt (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
TRUE
for asynchronous execution.
--> ioCompletion ProcPtr A pointer to a completion routine. <-- ioResult OSErr The function result. --> csCode Integer Always closeATPSkt
for this function.--> atpSocket Byte The socket number.
Field Description
atpSocket
- The number of the socket to be closed.
DESCRIPTION
ThePCloseATPSkt
function closes the socket that you opened to receive ATP requests or to send them over a specific socket.ASSEMBLY-LANGUAGE INFORMATION
To execute thePCloseATPSkt
function from assembly language, call the_Control
trap macro with a value ofcloseATPSkt
in thecsCode
field 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 noDataArea -1104 Too many outstanding ATP calls