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

Wait for and accept a new incoming connection&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e2a7c1328), requires&lowbar;capability(0x7f2e2a92e4a8), requires&lowbar;capability(0x7f2e22548f58), requires&lowbar;capability(0x7f2e263f5368), requires&lowbar;capability(0x7f2e22817c78), requires&lowbar;capability(0x7f2e2abec858), requires&lowbar;capability(0x7f2e4307eeb8), requires&lowbar;capability(0x7f2e41b52b98), requires&lowbar;capability(0x7f2e18720158), requires&lowbar;capability(0x7f2e1cf3e6c8), requires&lowbar;capability(0x7f2e15144968), requires&lowbar;capability(0x7f2e120b0238)&rsqb;&rsqb;
bool
Accept(xref:i2p/Connection.adoc[Connection]& conn);
----

== Return Value

true on success

== Parameters

[cols="1,4"]
|===
| Name| Description
| *conn* [inout]
| The `sock` member is used for waiting and accepting&period; Upon successful completion the `peer` member will be set to the address of the incoming peer&period;
|===


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