Browse Source

net/emcute: added doc for maximum buffer size

On 16- and 8-bit platforms, ssizte_t can only hold 2 byte (maximum
of 32767). So when calling sock_udp_recv() we can not pass it a
buffer exeeding this size without potially running into overflow
issues...
master
Hauke Petersen 5 years ago
parent
commit
9ec615f8c2
  1. 3
      sys/include/net/emcute.h

3
sys/include/net/emcute.h

@ -106,6 +106,9 @@ extern "C" {
/**
* @brief Buffer size used for emCute's transmit and receive buffers
*
* @note The buffer size MUST be less than 32768 on 16-bit and 8-bit
* platforms to prevent buffer overflows.
*
* The overall buffer size used by emCute is this value time two (Rx + Tx).
*/
#define EMCUTE_BUFSIZE (512U)

Loading…
Cancel
Save