lrs_set_recv_timeout

Example: lrs_set_recv_timeoutTimeout Functions

Sets a timeout for receiving the expected data on a socket.

void lrs_set_recv_timeout( long sec, long u_sec );
sec The desired timeout in seconds (default: 10 seconds).
u_sec The desired timeout in microseconds (which is added to the sec parameter)

The lrs_set_recv_timeout function sets the period of time that Vugen waits to receive expected data from a socket.

Note: Note that if, by this time, the buffer size does not match the expected data size (i.e it is smaller or larger), lrs_receive will re-read the incoming data carried by the socket, until a second timeout has elapsed. For more information, see lrs_set_recv_timeout2.

By default the receive timeout is 10 seconds. The timeout is global for all sockets and is valid until the next invocation of lrs_set_recv_timeout.

This function is not recorded during a WinSock session —you must manually insert it into your script.

Return Values

This function has no return value.

Parameterization

You cannot use standard parameterization for any arguments in this function.