CConnman::CConnman

Construct a connection manager with the given randomness seeds and dependencies.

Synopsis

Declared in <net.h>

CConnman(
    uint64_t seed0,
    uint64_t seed1,
    AddrMan& addrman,
    NetGroupManager const& netgroupman,
    CChainParams const& params,
    bool network_active = true,
    std::shared_ptr<CThreadInterrupt> interrupt_net = std::make_shared<CThreadInterrupt>());

Parameters

NameDescription
seed0first half of the seed for deterministic randomizers.
seed1second half of the seed for deterministic randomizers.
addrmanthe address manager used to select and store peer addresses.
netgroupmanthe network group manager used for peer bucketing.
paramsthe chain parameters currently in use.
network_activewhether networking starts out active.
interrupt_netinterrupt used to unblock and shut down network operations.