Gio.SocketConnection.prototype.connect_async
function connect_async(address: Gio.SocketAddress, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_socket_connection_connect_async() }
Asynchronously connect connection to the specified remote address.
This clears the Gio.Socket.blocking flag on connection's underlying socket if it is currently set.
Use Gio.SocketConnection.prototype.connect_finish to retrieve the result.
Since 2.32
- address
a Gio.SocketAddress specifying the remote address.
- cancellable
a %GCancellable or null
- callback