ngtcp2_conn_decode_early_transport_params ========================================= Synopsis -------- *#include * .. function:: int ngtcp2_conn_decode_early_transport_params(ngtcp2_conn *conn, const uint8_t *data, size_t datalen) `ngtcp2_conn_decode_early_transport_params` decodes QUIC transport parameters from *data* of length *datalen*, which is assumed to be the parameters received from the server in the previous connection, and sets it to *conn*. These parameters are used to send early data. QUIC requires that client application should remember transport parameters along with a session ticket. At least following fields should be set: - initial_max_stream_id_bidi - initial_max_stream_id_uni - initial_max_stream_data_bidi_local - initial_max_stream_data_bidi_remote - initial_max_stream_data_uni - initial_max_data - active_connection_id_limit - max_datagram_frame_size (if DATAGRAM extension was negotiated) This function must only be used by client. This function returns 0 if it succeeds, or one of the following negative error codes: :macro:`NGTCP2_ERR_NOMEM` Out of memory. :macro:`NGTCP2_ERR_MALFORMED_TRANSPORT_PARAM` The input is malformed.