CM.Client.get_homeserver_async

### Method

# CM Clientget_homeserver_async

#### Declaration [src]

    void
    cm_client_get_homeserver_async (
      CmClient* self,
      GCancellable* cancellable,
      GAsyncReadyCallback callback,
      gpointer user_data
    )

#### Description [src]

Tries to determine the home server based on the user data set on the `CmAccount`.

Run `cm_client_get_homeserver_finish()` to get the result.

This method completes asynchronously. Use `cm_client_get_homeserver_finish()` inside the `GAsyncReadyCallback` to obtain the result of the operation.

#### Parameters

`cancellable`

  Type: `GCancellable`

  A `GCancellable`.

  The argument can be `NULL`.
  The data is owned by the caller of the method.

`callback`

  Type: `GAsyncReadyCallback`

  A `GAsyncReadyCallback`.

  The argument can be `NULL`.

`user_data`

  Type: `gpointer`

  The user data for `callback`.

  The argument can be `NULL`.
  The data is owned by the caller of the method.