[#i2p-sam]
= xref:i2p.adoc[i2p]::sam
:relfileprefix: ../
:mrdocs:

Types and helpers for talking to an I2P router over the SAM (v3) protocol&period;

== Types

[cols="1,4"]
|===
| Name| Description
| xref:i2p/sam/Session.adoc[`Session`] 
| I2P SAM session&period;
|===


== Variables

[cols="1,4"]
|===
| Name| Description
| xref:i2p/sam/MAX_MSG_SIZE.adoc[`MAX&lowbar;MSG&lowbar;SIZE`] 
| The maximum size of an incoming message from the I2P SAM proxy (in bytes)&period; Used to avoid a runaway proxy from sending us an &quot;unlimited&quot; amount of data without a terminator&period; The longest known message is &#126;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&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
