Share this page

# lrs_set_connect_timeout

Example: lrs_set_connect_timeout | Timeout Functions

Sets a timeout for connecting to a socket.

    void lrs_set_connect_timeout( long seconds, long u_sec );

seconds | The desired timeout in seconds.
u_sec | The desired timeout in microseconds (added to the seconds parameter)

The lrs_set_connect_timeout function sets a timeout for connecting to a socket. You insert this programmable function (not recorded) directly before a connect command, lrs_create_socket.

The connect timeout is global for all sockets. It is valid until the next call to lrs_set_connect_timeout.

## Return Values

This function has no return value.

## Parameterization

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

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: