PCloseSkt
PCloseSkt Remove specified socket from the socket table MPPPBPtr thePBptr; pointer to an DDPparms structure Boolean async; 0=await completion; 1=immediate return PCloseSkt removes the entry of the specified socket from the socket table. thePBptr iis a pointer to an DDPparms structure. Æ csCode short 2 26 always closeSkt
Æ socket 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.
noErr (0) No error
ddpSktErr (-91) Socket error
Notes: If you pass a socket number of 0, or if you attempt to close a socket that
isn't open, PCloseSkt will return a ddpSktErr. Before it can use a socket, the program must call POpenSkt which adds a socket and its socket listener to the socket table. When a client is finished
using a socket, call PCloseSkt, which removes the socket's entry from the socket table. To send a datagram via DDP, call PWriteDDP. If you want to read DDP datagrams, you must write your own socket listener. DDP will
send every incoming datagram for that socket to your socket listener.