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.

Use g_socket_connection_connect_finish() to retrieve the result.

class SocketConnection
void
connectAsync

Parameters

address SocketAddress

a #GSocketAddress specifying the remote address.

cancellable Cancellable

a %GCancellable or %NULL

callback GAsyncReadyCallback

a #GAsyncReadyCallback

userData void*

user data for the callback

Meta

Since

2.32