connect_sync


Description:

public uint connect_sync (Cancellable? cancellable = null)

Attempt to synchronously connect this to its remote address.

If cancellable is non-%NULL, it can be used to cancel the connection, in which case connect_sync will return CANCELLED.

Parameters:

this

a client Socket (which must not already be connected)

cancellable

a Cancellable, or null

Returns:

a success or failure code.