Example: lrs_set_recv_timeout

In the following example, lrs_set_recv_timeout specifies a timeout of 120 seconds for a login procedure. Because the recorded (and expected) login screen may take several minutes to appear, the timeout was modified from 10 to 120 seconds.

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