connect_to_host_async


Description:

public async SocketConnection connect_to_host_async (string host_and_port, uint16 default_port, Cancellable? cancellable = null) throws Error

This is the asynchronous version of connect_to_host.

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

Parameters:

this

a SocketClient

host_and_port

the name and optionally the port of the host to connect to

default_port

the default port to connect to

cancellable

a Cancellable, or null

callback

a AsyncReadyCallback

user_data

user data for the callback