ngtcp2_conn_set_remote_transport_params

Synopsis

#include <ngtcp2/ngtcp2.h>

int ngtcp2_conn_set_remote_transport_params(ngtcp2_conn *conn, const ngtcp2_transport_params *params)

ngtcp2_conn_set_remote_transport_params() sets transport parameter params from a remote endpoint to conn.

This function returns 0 if it succeeds, or one of the following negative error codes:

NGTCP2_ERR_TRANSPORT_PARAM

Failed to validate a remote transport parameters.

NGTCP2_ERR_VERSION_NEGOTIATION_FAILURE

Version negotiation failure.

NGTCP2_ERR_CALLBACK_FAILURE

User callback failed

NGTCP2_ERR_NOMEM

Out of memory.