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_PARAMFailed to validate a remote transport parameters.
NGTCP2_ERR_VERSION_NEGOTIATION_FAILUREVersion negotiation failure.
NGTCP2_ERR_CALLBACK_FAILUREUser callback failed
NGTCP2_ERR_NOMEMOut of memory.