Sets the time in seconds after which I/O operations on
time out if they have not yet completed.
On a blocking socket, this means that any blocking
operation will time out after
timeout seconds of inactivity,
On a non-blocking socket, calls to
also fail with
G_IO_ERROR_TIMED_OUT after the given time. Sources
g_socket_create_source() will trigger after
timeout seconds of inactivity, with the requested condition
set, at which point calling g_socket_receive(), g_socket_send(),
g_socket_check_connect_result(), etc, will fail with
timeout is 0 (the default), operations will never time out
on their own.
Note that if an I/O operation is interrupted by a signal, this may cause the timeout to be reset.
Available since: 2.26