Wait for and accept a new incoming connection.

Synopsis

Declared in <i2p.h>

bool
Accept(Connection& conn);

Return Value

true on success

Parameters

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.

Created with MrDocs