DDPOpenSocket
short * theSocket; pointer to a socket number
Ptr sktListener; pointer to a socket listener 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
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.
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. 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.