private-octopus / picoquic

Minimal implementation of the QUIC protocol
MIT License
540 stars 159 forks source link

Add new API for providing datagram buffers #1480

Closed huitema closed 1 year ago

huitema commented 1 year ago

The new extended API:

uint8_t* picoquic_provide_datagram_buffer_ex(void* context, size_t length, int is_active);

adds an "is_active" parameter to the previous version. See comments in picoquic.h explaining the behavior of the API.