[#i2p-sam-MAX_MSG_SIZE] = xref:i2p.adoc[i2p]::xref:i2p/sam.adoc[sam]::MAX_MSG_SIZE :relfileprefix: ../../ :mrdocs: 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. == Synopsis Declared in `<i2p.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr size_t MAX_MSG_SIZE = {65'536}; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#