SocketClient.connectToHostAsync
void connectToHostAsync(string hostAndPort, ushort defaultPort, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)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.
Parameters
hostAndPort | the name and optionally the port of the host to connect to |
defaultPort | the default port to connect to |
cancellable | a #GCancellable, or null |
callback | a #GAsyncReadyCallback |