connect


Description:

[ Version ( since = "3.6" ) ]
public async bool connect (int io_priority, Cancellable? cancellable = null) throws Error

Asynchronously connects this to a remote server using the information in its settings instance.

If a connect operation is already in progress when this function is called, its results will be reflected in this connect operation.

If any disconnect operations are in progress when this function is called, they will be cancelled.

When the operation is finished, callback will be called. You can then call connect.end to get the result of the operation.

Parameters:

this

a Service

io_priority

the I/O priority of the request

cancellable

optional Cancellable object, or null

callback

a TaskReadyCallback to call when the request is satisfied

user_data

data to pass to the callback function