[#i2p-sam-Session-2constructor-00] = xref:i2p.adoc[i2p]::xref:i2p/sam.adoc[sam]::xref:i2p/sam/Session.adoc[Session]::Session :relfileprefix: ../../../ :mrdocs: Construct a session. This will not initiate any IO, the session will be lazily created later when first used. == Synopsis Declared in `<i2p.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Session( xref:fs/path.adoc[fs::path] const& private_key_file, xref:Proxy.adoc[Proxy] const& control_host, std::shared_ptr<CThreadInterrupt> interrupt); ---- == Parameters [cols="1,4"] |=== | Name| Description | *private_key_file* [in] | Path to a private key file. If the file does not exist then the private key will be generated and saved into the file. | *control_host* [in] | Location of the SAM proxy. | *interrupt* [inout] | If this is signaled then all operations are canceled as soon as possible and executing methods throw an exception. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#