SocketConnection.connectAsync
void connectAsync(gio.socket_address.SocketAddress address, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously connect connection to the specified remote address.
This clears the #GSocket:blocking flag on connection's underlying socket if it is currently set.
If #GSocket:timeout is set, the operation will time out and return [gio.types.IOErrorEnum.TimedOut] after that period. Otherwise, it will continue indefinitely until operating system timeouts (if any) are hit.
Use [gio.socket_connection.SocketConnection.connectFinish] to retrieve the result.
Parameters
address | a #GSocketAddress specifying the remote address. |
cancellable | a [gio.cancellable.Cancellable] or null |
callback | a #GAsyncReadyCallback |