CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
NetPool Struct Reference

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.
 

Detailed Description

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.

Definition at line 51 of file pool.h.

Field Documentation

◆ msgbuf

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.

Definition at line 66 of file pool.h.


The documentation for this struct was generated from the following file: