ngtcp2_conn_encode_local_transport_params2

Synopsis

#include <ngtcp2/ngtcp2.h>

ngtcp2_ssize ngtcp2_conn_encode_local_transport_params2(const ngtcp2_conn *conn, uint8_t *dest, size_t destlen)

ngtcp2_conn_encode_local_transport_params2() encodes the local QUIC transport parameters in dest of length destlen.

This function returns the number of bytes written, or one of the following negative error codes:

NGTCP2_ERR_NOBUF

Buffer is too small.

Added in version 1.23.0.