ngtcp2_conn_write_datagram
Synopsis
#include <ngtcp2/ngtcp2.h>
-
ngtcp2_ssize ngtcp2_conn_write_datagram(ngtcp2_conn *conn, ngtcp2_path *path, ngtcp2_pkt_info *pi, uint8_t *dest, size_t destlen, int *paccepted, uint32_t flags, uint64_t dgram_id, const uint8_t *data, size_t datalen, ngtcp2_tstamp ts)
ngtcp2_conn_write_datagram()
is just likengtcp2_conn_writev_datagram()
. The only difference is that it conveniently accepts a single buffer.