NLsocket nlOpen(NLushort port, NLenum type)
port
[in]The port to bind to.
type
[in]The type of socket to create (NL_RELIABLE, NL_UNRELIABLE, NL_RELIABLE_PACKETS, NL_BROADCAST, NL_MULTICAST).
nlOpen returns a new socket object of type, bound to port. If port is '0', then the system will assign a port number.
If no error occurs, nlOpen returns a new socket object.
Otherwise, a value of NL_INVALID is returned, and the specific error code can be retrieved by calling
nlGetError
NL_INVALID_ENUM : The socket type is not valid.
NL_SYSTEM_ERROR : A system Socket error has ocurred. The system error can be retrieved by
calling nlGetSystemError.
Back to the HawkNL index page
Go directly to the main HawkNL page at Hawk Software
© 2000-2002 Phil Frisbie.