i2p::sam::Session::Accept

Wait for and accept a new incoming connection.

Synopsis

Declared in <i2p.h>

bool
Accept(Connection& conn);

Return Value

true on success

Parameters

NameDescription
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.