ngtcp2_conn_get_ccerr

Synopsis

#include <ngtcp2/ngtcp2.h>

const ngtcp2_ccerr *ngtcp2_conn_get_ccerr(ngtcp2_conn *conn)

Warning

Deprecated since version 1.23.0: Use ngtcp2_conn_get_ccerr2() instead.

ngtcp2_conn_get_ccerr() returns the received connection close error. If no connection error is received, it returns ngtcp2_ccerr that is initialized by ngtcp2_ccerr_default().