ngtcp2_conn_submit_new_token
Synopsis
#include <ngtcp2/ngtcp2.h>
-
int ngtcp2_conn_submit_new_token(ngtcp2_conn *conn, const uint8_t *token, size_t tokenlen)
ngtcp2_conn_submit_new_token()
submits address validation token. It is sent in NEW_TOKEN frame. Only server can call this function. tokenlen must not be 0.This function makes a copy of the buffer pointed by token of length tokenlen.
This function returns 0 if it succeeds, or one of the following negative error codes:
NGTCP2_ERR_NOMEM
Out of memory.