Constant BATCH_SIZE_CAP

Source
pub const BATCH_SIZE_CAP: usize = imp::BATCH_SIZE_CAP; // 1_024usize
Expand description

Maximum number of UDP packets that can be sent by the sendmmsg/recvmmsg wrappers. Note that, for supported platforms, the OS caps the batch size at this value, but will not return an error, so this is just a suggested maximum.

Presently, this is 1024 on Linux and FreeBSD, and 1 on platforms that don’t support sendmmsg/recvmmsg