ngtcp2_connection_close_error_set_transport_error_idle_close¶
Synopsis¶
#include <ngtcp2/ngtcp2.h>
-
void ngtcp2_connection_close_error_set_transport_error_idle_close(ngtcp2_connection_close_error *ccerr, const uint8_t *reason, size_t reasonlen)¶
ngtcp2_connection_close_error_set_transport_error_idle_close()setsccerr->typetongtcp2_connection_close_error_code_type.NGTCP2_CONNECTION_CLOSE_ERROR_CODE_TYPE_TRANSPORT_IDLE_CLOSE, andccerr->error_codetoNGTCP2_NO_ERROR. reason is the reason phrase of length reasonlen. This function does not make a copy of the reason phrase.