connect_async


Description:

[ Version ( since = "2.32" ) ]
public async bool connect_async (SocketAddress address, Cancellable? cancellable = null) throws Error

Asynchronously connect this to the specified remote address.

This clears the blocking flag on this's underlying socket if it is currently set.

If timeout is set, the operation will time out and return g_io_error_timed_out after that period. Otherwise, it will continue indefinitely until operating system timeouts (if any) are hit.

Use connect_async.end to retrieve the result.

Parameters:

this

a SocketConnection

address

a SocketAddress specifying the remote address.

cancellable

a gcancellable or null

callback

a TaskReadyCallback

user_data

user data for the callback