|
CX Framework
Cross-platform C utility framework
|
Shared, capped pool of network message buffers and headers. More...
#include <pool.h>
Data Fields | |
| BufPool | msgbuf |
| Pooled receive buffers, capped at queue creation. | |
| PrQueue | msghdr |
| Free NetMessage headers, so the steady-state packet path allocates nothing. | |
Shared, capped pool of network message buffers and headers.
Queue-wide storage that anything holding a NetMessage keeps a reference to, so a buffer is always returned rather than destroyed. See Buffer Pool.
| BufPool NetPool::msgbuf |
Pooled receive buffers, capped at queue creation.
recvBufMax * recvBufSize is the entire receive-side memory ceiling. When the pool is dry the datagram path drops the packet and bumps droppedNoBuf rather than allocating; the stream path instead stops posting receives and lets TCP flow control apply backpressure.