#include <net.h>
#include <chainparams.h>
#include <clientversion.h>
#include <consensus/consensus.h>
#include <crypto/common.h>
#include <crypto/sha256.h>
#include <primitives/transaction.h>
#include <netbase.h>
#include <scheduler.h>
#include <ui_interface.h>
#include <utilstrencodings.h>
#include <fcntl.h>
#include <math.h>
Go to the source code of this file.
◆ DUMP_ADDRESSES_INTERVAL
#define DUMP_ADDRESSES_INTERVAL 900 |
◆ FEELER_SLEEP_WINDOW
#define FEELER_SLEEP_WINDOW 1 |
◆ MSG_DONTWAIT
◆ MSG_NOSIGNAL
◆ BindFlags
Used to pass flags to the Bind() function.
Enumerator |
---|
BF_NONE | |
BF_EXPLICIT | |
BF_REPORT_ERROR | |
BF_WHITELIST | |
Definition at line 68 of file net.cpp.
◆ AddLocal() [1/2]
bool AddLocal |
( |
const CService & |
addr, |
|
|
int |
nScore |
|
) |
| |
◆ AddLocal() [2/2]
bool AddLocal |
( |
const CNetAddr & |
addr, |
|
|
int |
nScore |
|
) |
| |
◆ AdvertiseLocal()
void AdvertiseLocal |
( |
CNode * |
pnode | ) |
|
◆ Discover()
◆ GetListenPort()
unsigned short GetListenPort |
( |
| ) |
|
◆ GetLocal()
◆ GetLocalAddress()
◆ InterruptMapPort()
void InterruptMapPort |
( |
| ) |
|
◆ IsLimited() [1/2]
◆ IsLimited() [2/2]
◆ IsLocal()
check whether a given address is potentially local
Definition at line 281 of file net.cpp.
◆ IsPeerAddrLocalGood()
bool IsPeerAddrLocalGood |
( |
CNode * |
pnode | ) |
|
◆ IsReachable() [1/2]
bool IsReachable |
( |
enum Network |
net | ) |
|
check whether a given network is one we can probably connect to
Definition at line 288 of file net.cpp.
◆ IsReachable() [2/2]
bool IsReachable |
( |
const CNetAddr & |
addr | ) |
|
check whether a given address is in a network we can probably connect to
Definition at line 295 of file net.cpp.
◆ PoissonNextSend()
int64_t PoissonNextSend |
( |
int64_t |
now, |
|
|
int |
average_interval_seconds |
|
) |
| |
Return a timestamp in the future (in microseconds) for exponentially distributed events.
Definition at line 2900 of file net.cpp.
◆ RemoveLocal()
void RemoveLocal |
( |
const CService & |
addr | ) |
|
◆ SeenLocal()
vote for a local address
Definition at line 268 of file net.cpp.
◆ SetLimited()
void SetLimited |
( |
enum Network |
net, |
|
|
bool |
fLimited |
|
) |
| |
Make a particular network entirely off-limits (no automatic connects to it)
Definition at line 248 of file net.cpp.
◆ StartMapPort()
◆ StopMapPort()
◆ cs_mapLocalHost
◆ fDiscover
◆ fListen
◆ fRelayTxes
◆ instance_of_cnetcleanup
◆ mapAlreadyAskedFor
◆ mapLocalHost
◆ strSubVersion
std::string strSubVersion |
Subversion as sent to the P2P network in version
messages.
Definition at line 89 of file net.cpp.