Share this page

# 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);

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: