DDPOpenSocket
DDPOpenSocket Add a socket and its listener to the table
#include <AppleTalk.h> AppleTalk Manager
OSErr DDPOpenSocket( theSocket, sktListener);
short * theSocket; pointer to a socket number
Ptr sktListener; pointer to a socket listener
returns Error Code; 0=no error
DDPOpenSocket is part of the AppleTalk alternate interface. It is
recommended that you use the preferred call, POpenSkt instead.
DDPOpenSocket adds a socket and its socket listener to the socket table
theSocket is a pointer to the socket number If theSocket is nonZero, it must be
in the range 64 to 127, and it specifies the socket's number; if
theSocket is 0, DDPOpenSocket dynamically assigns a socket
number in the range 128 to 254, and returns it in theSocket.
sktListener contains a pointer to the socket listener; if it's NIL, the default
listener will be used.
Returns: an operating system Error Code. It will be one of:
noErr (0) No error
ddpSktErr (-91) Socket error

Notes: If you're using the default socket listener, you must then call DDPRead to
receive a datagram (in order to specify buffer space for the default socket
listener). If, however, you've written your own socket listener and
sktListner points to it, your listener will provide buffers for receiving
datagrams and you should not use DDPRead calls.
DDPOpenSocket will return ddpSktErr if you pass the number of an
already opened socket, if you pass a socket number greater than 127, or if
the socket table is full.
The range of static socket numbers 1 through 63 is reserved by Apple for
internal use. Socket numbers 64 through 127 are available for
unrestricted experimental use.