Function
Dexsocket_client_connect_to_host
unstable since: 1.2
Declaration [src]
DexFuture*
dex_socket_client_connect_to_host (
GSocketClient* socket_client,
const char* host_and_port,
guint16 default_port
)
Parameters
socket_client-
Type:
GSocketClientThe data is owned by the caller of the function. host_and_port-
Type:
const char*Host and optional port to connect to.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. default_port-
Type:
guint16Default port to use.
Return value
Type: DexFuture
A DexFuture that resolves to a
GSocketConnection or rejects with error.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |