PCloseATPSkt
PCloseATPSkt Close a specified socket
#include <AppleTalk.h> AppleTalk Manager
OSErr PCloseATPSkt( thePBptr, async);
ATPPBPtr thePBptr; pointer to an ATPparms structure
Boolean async; 0=await completion; 1=immediate return
returns Error Code; 0=no error
PCloseATPSkt closes the socket whose number is specified in the atpSocket
parameter of the ATPparms structure, for the purpose of receiving requests.
thePBptr iis a pointer to an ATPparms structure.
Out-In Name Type Size Offset Description
Æ csCode short 2 26 always closeATPSkt
Æ atpSocket char 1 28 socket number
async is a Boolean value. Use FALSE for normal ( synchronous) operation
or TRUE to enqueue the request and resume control immediately. See
Async I/O.
Returns: an operating system Error Code. It will be one of:
noErr (0) No error
noDataArea (-1104) Too many outstanding ATP calls

Notes: To send a request to another socket and get a response, call
PSendRequest. The call terminates when either an entire response is
received or a specified retry timeout interval elapses. To open a socket for
the purpose of responding to requests, call POpenATPSkt. Then call
PGetRequest to receive a request; when a request is received, the call is
completed. After receiving and servicing a request, call PSendResponse
to return response information. If you cannot or do not want to send the
entire response all at once, make a PSendResponse call to send some of
the response, and then call PAddResponse later to send the remainder of
the response. To close a socket opened for the purpose of sending responses,
call PCloseATPSkt.