Skip to main content

PAYLOAD_SIZE_INT

Constant PAYLOAD_SIZE_INT 

Source
pub(crate) const PAYLOAD_SIZE_INT: usize = _; // 1_037usize
Expand description

Size of the maximum packet payload.

Adjust this value to change the maximum packet size. The calculation here is based on the fact that libp2p Stream over QUIC leaves space for 1460 bytes in the packet payload.

DO NOT USE this value for calculations outside of this crate: use HoprPacket::PAYLOAD_SIZE instead!