|
std::map< CNetAddr, LocalServiceInfo > mapLocalHost | GUARDED_BY (cs_mapLocalHost) |
|
unsigned short | GetListenPort () |
|
bool | GetLocal (CService &addr, const CNetAddr *paddrPeer) |
|
static std::vector< CAddress > | convertSeed6 (const std::vector< SeedSpec6 > &vSeedsIn) |
| Convert the pnSeed6 array into usable address objects. More...
|
|
CAddress | GetLocalAddress (const CNetAddr *paddrPeer, ServiceFlags nLocalServices) |
|
static int | GetnScore (const CService &addr) |
|
bool | IsPeerAddrLocalGood (CNode *pnode) |
|
void | AdvertiseLocal (CNode *pnode) |
|
bool | AddLocal (const CService &addr, int nScore) |
|
bool | AddLocal (const CNetAddr &addr, int nScore) |
|
void | RemoveLocal (const CService &addr) |
|
void | SetReachable (enum Network net, bool reachable) |
| Mark a network as reachable or unreachable (no automatic connects to it) More...
|
|
bool | IsReachable (enum Network net) |
|
bool | IsReachable (const CNetAddr &addr) |
|
bool | SeenLocal (const CService &addr) |
| vote for a local address More...
|
|
bool | IsLocal (const CService &addr) |
| check whether a given address is potentially local More...
|
|
static CAddress | GetBindAddress (SOCKET sock) |
| Get the bind address for a socket as CAddress. More...
|
|
static bool | ReverseCompareNodeMinPingTime (const NodeEvictionCandidate &a, const NodeEvictionCandidate &b) |
|
static bool | ReverseCompareNodeTimeConnected (const NodeEvictionCandidate &a, const NodeEvictionCandidate &b) |
|
static bool | CompareNetGroupKeyed (const NodeEvictionCandidate &a, const NodeEvictionCandidate &b) |
|
static bool | CompareNodeBlockTime (const NodeEvictionCandidate &a, const NodeEvictionCandidate &b) |
|
static bool | CompareNodeTXTime (const NodeEvictionCandidate &a, const NodeEvictionCandidate &b) |
|
template<typename T , typename Comparator > |
static void | EraseLastKElements (std::vector< T > &elements, Comparator comparator, size_t k) |
| Sort an array by the specified comparator, then erase the last K elements. More...
|
|
void | StartMapPort () |
|
void | InterruptMapPort () |
|
void | StopMapPort () |
|
void | Discover () |
|
int64_t | PoissonNextSend (int64_t now, int average_interval_seconds) |
| Return a timestamp in the future (in microseconds) for exponentially distributed events. More...
|
|
std::string | getSubVersionEB (uint64_t MaxBlockSize) |
| This function convert MaxBlockSize from byte to MB with a decimal precision one digit rounded down E.g. More...
|
|
std::string | userAgent (const Config &config) |
|
std::string getSubVersionEB |
( |
uint64_t |
MaxBlockSize | ) |
|
This function convert MaxBlockSize from byte to MB with a decimal precision one digit rounded down E.g.
1660000 -> 1.6 2010000 -> 2.0 1000000 -> 1.0 230000 -> 0.2 50000 -> 0.0
NB behavior for EB<1MB not standardized yet still the function applies the same algo used for EB greater or equal to 1MB
Definition at line 3150 of file net.cpp.
constexpr std::chrono::seconds DNSSEEDS_DELAY_FEW_PEERS {11} |
|
static |
How long to delay before querying DNS seeds.
If we have more than THRESHOLD entries in addrman, then it's likely that we got those addresses from having previously connected to the P2P network, and that we'll be able to successfully reconnect to the P2P network via contacting one of them. So if that's the case, spend a little longer trying to connect to known peers before querying the DNS seeds.
Definition at line 66 of file net.cpp.