ngtcp2_conn_write_aggregate_pkt2 ================================ Synopsis -------- *#include * .. function:: ngtcp2_ssize ngtcp2_conn_write_aggregate_pkt2( ngtcp2_conn *conn, ngtcp2_path *path, ngtcp2_pkt_info *pi, uint8_t *buf, size_t buflen, size_t *pgsolen, ngtcp2_write_pkt write_pkt, size_t num_pkts, ngtcp2_tstamp ts) `ngtcp2_conn_write_aggregate_pkt2` behaves like `ngtcp2_conn_write_aggregate_pkt`, but it accepts *num_pkts* to specify the maximum number of packets to write. If *num_pkts* is 0, this function writes packets as much as possible. The actual number of packets to write is determined by the connection state (e.g., the congestion controller, data available to send) and the length of packet produced. This function has been available since v1.17.0.