connect_sync
Description:
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 | |
cancellable |
optional Cancellable object, or null |
Returns:
a IOStream, or null on error |