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.
this | |
cancellable |
optional Cancellable object, or null |
a IOStream, or null on error |