ngtcp2_conn_get_scid
Synopsis
#include <ngtcp2/ngtcp2.h>
-
size_t ngtcp2_conn_get_scid(ngtcp2_conn *conn, ngtcp2_cid *dest)
Warning
Deprecated since version 1.23.0: Use
ngtcp2_conn_get_scid2()instead.ngtcp2_conn_get_scid()writes all Source Connection IDs which a local endpoint has provided to a remote endpoint, and are not retired in dest. If dest is NULL, this function does not write anything, and returns the number of Source Connection IDs that would otherwise be written to the provided buffer. The buffer pointed by dest must have sizeof(ngtcp2_cid) * n bytes available, where n is the return value ofngtcp2_conn_get_scid()with dest == NULL.