Gio.DtlsConnection.shutdown_async

### Method

# Gio DtlsConnectionshutdown_async

since: 2.48

#### Declaration [src]

    void
    g_dtls_connection_shutdown_async (
      GDtlsConnection* conn,
      gboolean shutdown_read,
      gboolean shutdown_write,
      int io_priority,
      GCancellable* cancellable,
      GAsyncReadyCallback callback,
      gpointer user_data
    )

#### Description [src]

Asynchronously shut down part or all of the DTLS connection. See `g_dtls_connection_shutdown()` for more information.

Available since: 2.48

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

#### Parameters

`shutdown_read`

  Type: `gboolean`

  `TRUE` to stop reception of incoming datagrams.

`shutdown_write`

  Type: `gboolean`

  `TRUE` to stop sending outgoing datagrams.

`io_priority`

  Type: `int`

  The I/O priority of the request.

`cancellable`

  Type: `GCancellable`

  A `GCancellable`, or `NULL`.

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

`callback`

  Type: `GAsyncReadyCallback`

  Callback to call when the shutdown operation is complete.

  The argument can be `NULL`.

`user_data`

  Type: `gpointer`

  The data to pass to the callback function.

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