Bitcoin ABC 0.30.7
P2P Digital Currency
Classes | Variables
i2p::sam Namespace Reference

Classes

class  Session
 I2P SAM session. More...
 

Variables

static constexpr size_t MAX_MSG_SIZE {65536}
 The maximum size of an incoming message from the I2P SAM proxy (in bytes). More...
 

Variable Documentation

◆ MAX_MSG_SIZE

constexpr size_t i2p::sam::MAX_MSG_SIZE {65536}
staticconstexpr

The maximum size of an incoming message from the I2P SAM proxy (in bytes).

Used to avoid a runaway proxy from sending us an "unlimited" amount of data without a terminator. The longest known message is ~1400 bytes, so this is high enough not to be triggered during normal operation, yet low enough to avoid a malicious proxy from filling our memory.

Definition at line 52 of file i2p.h.