SocketClient.connectToUriAsync

This is the asynchronous version of Socket.clientConnectToUri.

When the operation is finished callback will be called. You can then call Socket.clientConnectToUriFinish to get the result of the operation.

class SocketClient
void
connectToUriAsync

Parameters

uri string

a network uri

defaultPort ushort

the default port to connect to

cancellable Cancellable

a gio.Cancellable, or NULL

callback GAsyncReadyCallback
userData void*

user data for the callback

Meta

Since

2.26