Example: lrs_set_accept_timeout

In the following example, lrs_set_accept_timeout specifies a timeout of 30 seconds.

lrs_set_accept_timeout(30,0); 
lrs_create_socket("socket2", "TCP", "LocalPort=625", "Backlog=5", LrsLastArg);
 /* accept(): socket 3 accepted via socket 2 */
lrs_accept_connection("socket"2, "socket3");
 /* send(): Sent to socket 3 */
"lrs_send ("socket3", "buf5", "TargetSocket=199.203.77.246:21", LrsLastArg );