Example: lrs_create_socket

In the following example, a new socket, socket1, is created. The lrs_create_socket statement connects the socket to a specific port and host.

int rc;
rc=lrs_create_socket("socket1", "TCP", "RemoteHost=199.203.77.246:21", LrsLastArg);