Method
GioSocketClientconnect_to_uri_async
since: 2.26
Declaration
void
g_socket_client_connect_to_uri_async (
GSocketClient* client,
const gchar* uri,
guint16 default_port,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description
This is the asynchronous version of g_socket_client_connect_to_uri().
When the operation is finished callback will be
called. You can then call g_socket_client_connect_to_uri_finish() to get
the result of the operation.
Available since: 2.26
Parameters
uri-
Type:
const gchar*A network uri.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. default_port-
Type:
guint16The default port to connect to.
cancellable-
Type:
GCancellableA
GCancellable, orNULL.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackA
GAsyncReadyCallback.The argument can be NULL. user_data-
Type:
gpointerUser data for the callback.
The argument can be NULL.The data is owned by the caller of the method.