ngtcp2_conn_decode_and_set_remote_transport_params
Synopsis
#include <ngtcp2/ngtcp2.h>
-
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:
NGTCP2_ERR_REQUIRED_TRANSPORT_PARAM
The required parameter is missing.
NGTCP2_ERR_MALFORMED_TRANSPORT_PARAM
The input is malformed.
NGTCP2_ERR_TRANSPORT_PARAM
Failed to validate the remote QUIC transport parameters.
NGTCP2_ERR_VERSION_NEGOTIATION_FAILURE
Version negotiation failure.
NGTCP2_ERR_CALLBACK_FAILURE
User callback failed