ngtcp2_conn_set_local_transport_params
Synopsis
#include <ngtcp2/ngtcp2.h>
-
int ngtcp2_conn_set_local_transport_params(ngtcp2_conn *conn, const ngtcp2_transport_params *params)
ngtcp2_conn_set_local_transport_params()
sets the local transport parameters params. This function can only be called by server. Although the local transport parameters are passed tongtcp2_conn_server_new()
, server might want to update them after ALPN is chosen. In that case, server can update the transport parameters with this function. Server must call this function before callingngtcp2_conn_install_tx_handshake_key()
.This function returns 0 if it succeeds, or one of the following negative error codes:
NGTCP2_ERR_INVALID_STATE
ngtcp2_conn_install_tx_handshake_key()
has been called.