
ngtcp2_conn_get_active_dcid2
============================

Synopsis
--------

*#include <ngtcp2/ngtcp2.h>*

.. function:: size_t ngtcp2_conn_get_active_dcid2(ngtcp2_conn *conn, ngtcp2_cid_token2 *dest)

    
    .. warning::
    
      .. version-deprecated:: 1.23.0
        Use `ngtcp2_conn_get_active_dcid3` instead.
    
    `ngtcp2_conn_get_active_dcid2` writes all active Destination
    Connection IDs and their tokens to *dest*.  Before handshake
    completes, this function returns 0.  If *dest* is NULL, this
    function does not write anything, and returns the number of
    Destination Connection IDs that would otherwise be written to the
    provided buffer.  The buffer pointed by *dest* must have
    sizeof(:type:`ngtcp2_cid_token2`) * n bytes available, where n is
    the return value of `ngtcp2_conn_get_active_dcid2` with *dest* ==
    NULL.
    
    .. version-added:: 1.22.0
