connect_async


Description:

public async SocketConnection connect_async (SocketConnectable connectable, Cancellable? cancellable = null) throws Error

This is the asynchronous version of connect.

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

Parameters:

this

a SocketClient

connectable

a SocketConnectable specifying the remote address.

cancellable

a Cancellable, or null

callback

a AsyncReadyCallback

user_data

user data for the callback