connectToUriAsync

open fun connectToUriAsync(uri: String, defaultPort: <Error class: unknown class>, cancellable: Cancellable? = null, callback: AsyncReadyCallback)

This is the asynchronous version of g_socket_client_connect_to_uri().

When the operation is finished @callback will be called. You can then call g_socket_client_connect_to_uri_finish() to get the result of the operation.

Since

2.26

Parameters

uri

a network uri

defaultPort

the default port to connect to

cancellable

a #GCancellable, or null

callback

a #GAsyncReadyCallback