ngtcp2_conn_decode_and_set_remote_transport_params ================================================== Synopsis -------- *#include * .. function:: int ngtcp2_conn_decode_and_set_remote_transport_params( ngtcp2_conn *conn, const uint8_t *data, size_t datalen) `ngtcp2_conn_decode_and_set_remote_transport_params` decodes QUIC transport parameters from the buffer pointed by *data* of length *datalen*, and sets the result to *conn*. This function returns 0 if it succeeds, or one of the following negative error codes: :macro:`NGTCP2_ERR_REQUIRED_TRANSPORT_PARAM` The required parameter is missing. :macro:`NGTCP2_ERR_MALFORMED_TRANSPORT_PARAM` The input is malformed. :macro:`NGTCP2_ERR_TRANSPORT_PARAM` Failed to validate the remote QUIC transport parameters. :macro:`NGTCP2_ERR_VERSION_NEGOTIATION_FAILURE` Version negotiation failure. :macro:`NGTCP2_ERR_CALLBACK_FAILURE` User callback failed