[#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. == Synopsis Declared in `<i2p.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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. Upon successful completion the `peer` member will be set to the address of the incoming peer. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#