Example: lrs_set_socket_options

In the following example, lrs_set_socket_options sets the LRS_NO_DELAY option for socket1.

int opt_value;
lrs_create_socket("socket1", "TCP", "RemoteHost=tears.abc.co.il:23", LrsLastArg);
/* Since opt_value was declared as an int type, it must be cast. */
lrs_set_socket_options("socket1", LRS_NO_DELAY, (char*)(&opt_value)); 
lrs_send("socket1", "buf2", LrsLastArg);