
37312.5. Creating a Client
// string (e.g. "192.168.1.100") or null-terminated host name
// (e.g. "www.programming2dgames.com")
// port = Port number. Port numbers 0-1023 are used for well-known
// services
// Port numbers 1024-65535 may be freely used
// protocol = UDP or TCP
// Post:
// Returns NET_OK on success
// Returns two-part int code on error
// The low 16 bits contains Status code as defined in net.h
// The high 16 bits contains "Windows Socket Error Code"
// *server = IP address connected to as null-terminated string
//========================================================================
int Net::createClient(char *server, int port, int protocol) ...