Allocate a NetClient structure and connect to a server.
Allocate a NetClient structure and connect to a server. Creates a simple TCP connection to the server and port specified in its tags.Supported tags:
XN_PORT: Port number in the range 1-65535.
XN_ADDRESS: Address string in dot notation format, for example "10.0.0.1".
XN_HOSTNAME: Server hostname to resolve and connect to, for example "example.net".
A typical call would look like this:
NetClient *client; client = net_client(XN_PORT, 1042, XN_ADDRESS, "10.0.0.1", TAG_END);