connect_async
Description:
[ Version ( since = "2.62" ) ]
public async IOStream connect_async (URI uri, Cancellable? cancellable, SessionConnectProgressCallback? progress_callback) throws Error
public async IOStream connect_async (URI uri, Cancellable? cancellable, SessionConnectProgressCallback? progress_callback) throws Error
Start a connection to uri.
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.
Parameters:
| this |
a Session |
| uri |
a URI to connect to |
| cancellable | |
| progress_callback |
a SessionConnectProgressCallback which will be called for every network event that occurs during the connection. |
| callback |
the callback to invoke when the operation finishes |
| user_data |
data for |