ngtcp2_conn_submit_crypto_data

Synopsis

#include <ngtcp2/ngtcp2.h>

int ngtcp2_conn_submit_crypto_data(ngtcp2_conn *conn, ngtcp2_encryption_level encryption_level, const uint8_t *data, const size_t datalen)

ngtcp2_conn_submit_crypto_data() submits crypto data data of length datalen to the library for transmission. encryption_level specifies the encryption level of data.

The library makes a copy of the buffer pointed by data of length datalen. Application can discard data.