CConnman::GetNodeCount

Return the number of connections in the given direction (inbound, outbound, or both).

Synopsis

Declared in <net.h>

[[requires_capability(0x7fd74b3b79a0), requires_capability(0x7fd74af18610), requires_capability(0x7fd7574ed2c0), requires_capability(0x7fd74f4a86a0), requires_capability(0x7fd75f872990), requires_capability(0x7fd75930f810), requires_capability(0x7fd753e61550), requires_capability(0x7fd74d890bc0), requires_capability(0x7fd755d44850), requires_capability(0x7fd7598a4760), requires_capability(0x7fd74c8f6f80)]]
size_t
GetNodeCount(ConnectionDirection direction) const;

Return Value

the number of connections matching the given direction.

Parameters

NameDescription
directionthe connection direction(s) to count.