Method
GioSocketClientconnect_to_service_async
since: 2.22
Declaration [src]
void
g_socket_client_connect_to_service_async (
  GSocketClient* client,
  const gchar* domain,
  const gchar* service,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)
Description [src]
This is the asynchronous version of g_socket_client_connect_to_service().
Available since: 2.22
This method completes asynchronously. Use g_socket_client_connect_to_service_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
- domain
- 
            Type: const gchar*A domain name. The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. 
- service
- 
            Type: const gchar*The name of the service to connect to. The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. 
- 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.