SocketClient.setTimeout

Sets the I/O timeout for sockets created by client. timeout is a time in seconds, or 0 for no timeout (the default).

The timeout value affects the initial connection attempt as well, so setting this may cause calls to gio.socket_client.SocketClient.connect, etc, to fail with gio.types.IOErrorEnum.TimedOut.

class SocketClient
void
setTimeout
(
uint timeout
)

Parameters

timeout uint

the timeout