[#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(0x7f950e6768f8), requires&lowbar;capability(0x7f9523034c88), requires&lowbar;capability(0x7f950a507218), requires&lowbar;capability(0x7f950254a3d8), requires&lowbar;capability(0x7f950e7f7ec8), requires&lowbar;capability(0x7f94f89eb738), requires&lowbar;capability(0x7f95221005b8), requires&lowbar;capability(0x7f9522cbf3a8), requires&lowbar;capability(0x7f9503d5ae78), requires&lowbar;capability(0x7f9526afc528), requires&lowbar;capability(0x7f9502fbc718), requires&lowbar;capability(0x7f9521a2de18)&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]#
