Xiqual 0.9.1

In file xinet/net_client.c:

NetClient* net_client

(ulong tag1, ... )

Allocate a NetClient structure and connect to a server.

Documentation

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);

Author:
Ronny Bangsund
See Also:
xipacket, net_client_free()

Alphabetic index



This page was generated with the help of DOC++.