connect_sync


Description:

public abstract IOStream connect_sync (Cancellable? cancellable = null) throws Error

Attempts to establish a network connection to the server described by this, using the preferred security_method to secure the connection.

If a connection cannot be established, or the connection attempt is cancelled, the function sets throws and returns null.

Parameters:

this

a NetworkService

cancellable

optional Cancellable object, or null

Returns:

a IOStream, or null on error