SocketConnection.connectAsync

Asynchronously connect connection to the specified remote address. This clears the "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

class SocketConnection
void
connectAsync

Parameters

address SocketAddress

a GSocketAddress specifying the remote address.

cancellable Cancellable

a GCancellable or NULL. [allow-none]

callback GAsyncReadyCallback

a GAsyncReadyCallback. [scope async]

userData void*

user data for the callback. closure

Meta