Dex.socket_client_connect_to_uri
Description: Reference for Dex.socket_client_connect_to_uri

### Function

# Dexsocket_client_connect_to_uri

unstable since: 1.2

#### Declaration [src]

    DexFuture*
    dex_socket_client_connect_to_uri (
      GSocketClient* socket_client,
      const char* uri,
      guint16 default_port
    )

#### Description [src]

Wraps `g_socket_client_connect_to_uri_async()`.

Available since: 1.2

#### Parameters

`socket_client`

  Type: `GSocketClient`

  A `GSocketClient`.

  The data is owned by the caller of the function.

`uri`

  Type: `const char*`

  URI 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: `guint16`

  Default 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.