SocketConnection.connectAsync

void connectAsync(gio.socket_address.SocketAddress address, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Asynchronously connect connection to the specified remote address.

This clears the #GSocket:blocking flag on connection's underlying socket if it is currently set.

If #GSocket:timeout is set, the operation will time out and return [gio.types.IOErrorEnum.TimedOut] after that period. Otherwise, it will continue indefinitely until operating system timeouts (if any) are hit.

Use [gio.socket_connection.SocketConnection.connectFinish] to retrieve the result.

Parameters

addressa #GSocketAddress specifying the remote address.
cancellablea [gio.cancellable.Cancellable] or null
callbacka #GAsyncReadyCallback