SocketConnection.connectAsync

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

address gio.socket_address.SocketAddress

a #GSocketAddress specifying the remote address.

cancellable gio.cancellable.Cancellable
callback gio.types.AsyncReadyCallback

a #GAsyncReadyCallback