Method
IbisClientconnect_async
since: 0.16
Declaration [src]
void
ibis_client_connect_async (
IbisClient* client,
const char* hostname,
guint16 port,
const char* password,
gboolean tls,
GProxyResolver* proxy_resolver,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer data
)
Description [src]
Attempts a connection to the given hostname and port.
The callback will be called when the TCP connection has been established
which is before the server has accepted the connection. See
IbisClient:registered and IbisClient::stopped to track whether
or not the server has accepted the connection.
Available since: 0.16
This method completes asynchronously. Use ibis_client_connect_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
hostname-
Type:
const char*The hostname or IP address.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. port-
Type:
guint16The port.
password-
Type:
const char*Optional server password.
The argument can be NULL.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. tls-
Type:
gbooleanWhether or not to use a TLS connection.
proxy_resolver-
Type:
GProxyResolverAn option proxy resolver.
The argument can be NULL.The data is owned by the caller of the method. cancellable-
Type:
GCancellableThe cancellable.
The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackThe optional callback.
The argument can be NULL. data-
Type:
gpointerThe user data to pass to the callback.
The argument can be NULL.The data is owned by the caller of the method.