[#i2p-sam-Session-2destructor]
= xref:i2p.adoc[i2p]::xref:i2p/sam.adoc[sam]::xref:i2p/sam/Session.adoc[Session]::&#126;Session
:relfileprefix: ../../../
:mrdocs:

Destroy the session, closing the internally used sockets&period; The sockets that have been returned by `Accept()` or `Connect()` will not be closed, but they will be closed by the SAM proxy because the session is destroyed&period; So they will return an error next time we try to read or write to them&period;

== Synopsis

Declared in `&lt;i2p&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&#126;Session();
----


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