#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>
#include <string>
#include <iostream>
#include <sstream>
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
#define X |
( |
|
name | ) |
stats.name = name |
◆ BindFlags
Used to pass flags to the Bind() function.
Enumerator |
---|
BF_NONE | |
BF_EXPLICIT | |
BF_REPORT_ERROR | |
BF_WHITELIST | |
Definition at line 73 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()
void Discover |
( |
boost::thread_group & |
threadGroup | ) |
|
◆ GetListenPort()
unsigned short GetListenPort |
( |
| ) |
|
◆ GetLocal()
◆ GetLocalAddress()
◆ GetnScore()
◆ IsLimited() [1/2]
◆ IsLimited() [2/2]
◆ IsLocal()
check whether a given address is potentially local
Definition at line 283 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 290 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 297 of file net.cpp.
◆ MapPort()
◆ PoissonNextSend()
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 2924 of file net.cpp.
◆ RemoveLocal()
bool RemoveLocal |
( |
const CService & |
addr | ) |
|
◆ SeenLocal()
vote for a local address
Definition at line 270 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 250 of file net.cpp.
◆ 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 93 of file net.cpp.