ngtcp2_conn_write_pkt

Synopsis

#include <ngtcp2/ngtcp2.h>

ngtcp2_ssize ngtcp2_conn_write_pkt(ngtcp2_conn *conn, ngtcp2_path *path, ngtcp2_pkt_info *pi, uint8_t *dest, size_t destlen, ngtcp2_tstamp ts)

ngtcp2_conn_write_pkt() is equivalent to calling ngtcp2_conn_writev_stream() with -1 as stream_id, no stream data, and NGTCP2_WRITE_STREAM_FLAG_NONE as flags.