connect_to_uri_async
Description:
[ Version ( since = "2.26" ) ]
public async SocketConnection connect_to_uri_async (string uri, uint16 default_port, Cancellable? cancellable = null) throws Error
public async SocketConnection connect_to_uri_async (string uri, uint16 default_port, Cancellable? cancellable = null) throws Error
This is the asynchronous version of connect_to_uri.
When the operation is finished callback will be called. You can then call connect_to_uri_async.end to
get the result of the operation.
Parameters:
| this | |
| uri |
a network uri |
| default_port |
the default port to connect to |
| cancellable |
a Cancellable, or null |
| callback | |
| user_data |
user data for the callback |