Example: lrs_set_recv_timeout2

In the following example, lrs_set_recv_timeout specifies a timeout of 120 seconds for a login procedure. Once the connection is established, the data streams at a quicker rate. The lrs_recv_timeout2 function sets the timeout for subsequent iterations to 10 seconds.

lrs_create_socket("socket2", "TCP", "RemoteHost=tears.abc.co.il:23", LrsLastArg);
lrs_send("socket2", "buf2", LrsLastArg);
lrs_set_recv_timeout(120,0); 
lrs_set_recv_timeout2(10,0); 
lrs_receive("socket2", "buf3", LrsLastArg);