ATPOpenSocket
ATPOpenSocket Open a socket to receive requests
#include <AppleTalk.h> AppleTalk Manager
OSErr ATPOpenSocket(addrRcvd , atpSocket);
AddrBlock addrRcvd; sockets from which requests are accepted
short * atpSocket; socket number
returns Error Code; 0=no error
ATPOpenSocket is part of the AppleTalk alternate interface. It is
recommended that you use the preferred call, POpenATPSkt instead.
ATPOpenSocket opens a socket for the purpose of receiving requests.
ATPSocket contains a pointer to the socket number of the socket to open; if the
socket number is 0, a number is dynamically assigned and returned in
atpSocket. AddrRcvd contains a filter of the sockets from which requests will
be accepted. A 0 in the network number, node ID, or socket number field of the
addrRcvd record acts as a "wild card"; for instance, a 0 in the socket number
field means that requests will be accepted from all sockets in the node(s)
specified by the network and node fields.
atpSocket contains the socket number of the socket to open.
addrRcvd contains a filter of the sockets from which requests will be accepted.
Returns: an operating system Error Code. It will be one of:
noErr (0) No error
tooManySkts (-1098) Socket table full
noDataArea (-1104) Too many outstanding ATP calls

Notes: If you're only going to send requests and receive responses to these
requests, you do not need to open an ATP socket. When you make the
ATPSndRequest or ATPRequest call, ATP automatically opens a
dynamically assigned socket for that purpose.