public async IOStream connect_async (URI uri, Cancellable? cancellable, SessionConnectProgressCallback? progress_callback) throws Error
Start a connection to
The operation can be monitored by providing a
progress_callback and finishes when the connection is done or an error ocurred.
Call connect_async.end to get the IOStream to communicate with the server.
a URI to connect to
a SessionConnectProgressCallback which will be called for every network event that occurs during the connection.
the callback to invoke when the operation finishes