SocketClient.connectToHostAsync

This is the asynchronous version of gio.socket_client.SocketClient.connectToHost.

When the operation is finished callback will be called. You can then call gio.socket_client.SocketClient.connectToHostFinish to get the result of the operation.

class SocketClient
void
connectToHostAsync

Parameters

hostAndPort string

the name and optionally the port of the host to connect to

defaultPort ushort

the default port to connect to

cancellable gio.cancellable.Cancellable

a #GCancellable, or null

callback gio.types.AsyncReadyCallback

a #GAsyncReadyCallback