connectAsync

open fun connectAsync(address: SocketAddress, cancellable: Cancellable? = null, callback: AsyncReadyCallback)

Asynchronously connect @connection to the specified remote address.

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

Use g_socket_connection_connect_finish() to retrieve the result.

Since

2.32

Parameters

address

a #GSocketAddress specifying the remote address.

cancellable

a %GCancellable or null

callback

a #GAsyncReadyCallback