#include <net.h>
#include <addrman.h>
#include <chainparams.h>
#include <clientversion.h>
#include <consensus/consensus.h>
#include <crypto/common.h>
#include <crypto/sha256.h>
#include <hash.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.
#define DUMP_ADDRESSES_INTERVAL 900 |
#define FEELER_SLEEP_WINDOW 1 |
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.
bool AddLocal |
( |
const CService & |
addr, |
|
|
int |
nScore |
|
) |
| |
bool AddLocal |
( |
const CNetAddr & |
addr, |
|
|
int |
nScore |
|
) |
| |
void AdvertiseLocal |
( |
CNode * |
pnode | ) |
|
void Discover |
( |
boost::thread_group & |
threadGroup | ) |
|
unsigned short GetListenPort |
( |
| ) |
|
check whether a given address is potentially local
Definition at line 278 of file net.cpp.
bool IsPeerAddrLocalGood |
( |
CNode * |
pnode | ) |
|
bool IsReachable |
( |
enum Network |
net | ) |
|
check whether a given network is one we can probably connect to
Definition at line 285 of file net.cpp.
bool IsReachable |
( |
const CNetAddr & |
addr | ) |
|
check whether a given address is in a network we can probably connect to
Definition at line 292 of file net.cpp.
int64_t PoissonNextSend |
( |
int64_t |
nNow, |
|
|
int |
average_interval_seconds |
|
) |
| |
Return a timestamp in the future (in microseconds) for exponentially distributed events.
Definition at line 2883 of file net.cpp.
bool RemoveLocal |
( |
const CService & |
addr | ) |
|
vote for a local address
Definition at line 265 of file net.cpp.
void SetLimited |
( |
enum Network |
net, |
|
|
bool |
fLimited |
|
) |
| |
Make a particular network entirely off-limits (no automatic connects to it)
Definition at line 245 of file net.cpp.
std::string strSubVersion |
Subversion as sent to the P2P network in version
messages.
Definition at line 88 of file net.cpp.