Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <addrdb.h>
#include <addrman.h>
#include <amount.h>
#include <bloom.h>
#include <compat.h>
#include <hash.h>
#include <limitedmap.h>
#include <netaddress.h>
#include <policy/feerate.h>
#include <protocol.h>
#include <random.h>
#include <streams.h>
#include <sync.h>
#include <uint256.h>
#include <threadinterrupt.h>
#include <atomic>
#include <deque>
#include <stdint.h>
#include <thread>
#include <memory>
#include <condition_variable>
#include <arpa/inet.h>
Go to the source code of this file.
Classes | |
struct | AddedNodeInfo |
struct | CSerializedNetMsg |
class | CConnman |
struct | CConnman::Options |
struct | CConnman::ListenSocket |
struct | CombinerAll |
class | NetEventsInterface |
Interface for message handling. More... | |
struct | LocalServiceInfo |
class | CNodeStats |
class | CNetMessage |
class | CNode |
Information about a peer. More... | |
Typedefs | |
typedef int64_t | NodeId |
typedef std::map< std::string, uint64_t > | mapMsgCmdSize |
Enumerations | |
enum | { LOCAL_NONE, LOCAL_IF, LOCAL_BIND, LOCAL_UPNP, LOCAL_MANUAL, LOCAL_MAX } |
Functions | |
void | Discover (boost::thread_group &threadGroup) |
void | MapPort (bool fUseUPnP) |
unsigned short | GetListenPort () |
bool | BindListenPort (const CService &bindAddr, std::string &strError, bool fWhitelisted=false) |
bool | IsPeerAddrLocalGood (CNode *pnode) |
void | AdvertiseLocal (CNode *pnode) |
void | SetLimited (enum Network net, bool fLimited=true) |
Make a particular network entirely off-limits (no automatic connects to it) More... | |
bool | IsLimited (enum Network net) |
bool | IsLimited (const CNetAddr &addr) |
bool | AddLocal (const CService &addr, int nScore=LOCAL_NONE) |
bool | AddLocal (const CNetAddr &addr, int nScore=LOCAL_NONE) |
bool | RemoveLocal (const CService &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... | |
bool | GetLocal (CService &addr, const CNetAddr *paddrPeer=nullptr) |
bool | IsReachable (enum Network net) |
check whether a given network is one we can probably connect to More... | |
bool | IsReachable (const CNetAddr &addr) |
check whether a given address is in a network we can probably connect to More... | |
CAddress | GetLocalAddress (const CNetAddr *paddrPeer, ServiceFlags nLocalServices) |
int64_t | PoissonNextSend (int64_t nNow, int average_interval_seconds) |
Return a timestamp in the future (in microseconds) for exponentially distributed events. More... | |
Variables | |
std::unique_ptr< CConnman > | g_connman |
bool | fDiscover |
bool | fListen |
bool | fRelayTxes |
limitedmap< uint256, int64_t > | mapAlreadyAskedFor |
std::string | strSubVersion |
Subversion as sent to the P2P network in version messages. More... | |
CCriticalSection | cs_mapLocalHost |
std::map< CNetAddr, LocalServiceInfo > | mapLocalHost |
typedef std::map<std::string, uint64_t> mapMsgCmdSize |
anonymous enum |
bool AddLocal | ( | const CService & | addr, |
int | nScore = LOCAL_NONE |
||
) |
bool AddLocal | ( | const CNetAddr & | addr, |
int | nScore = LOCAL_NONE |
||
) |
void AdvertiseLocal | ( | CNode * | pnode | ) |
bool BindListenPort | ( | const CService & | bindAddr, |
std::string & | strError, | ||
bool | fWhitelisted = false |
||
) |
void Discover | ( | boost::thread_group & | threadGroup | ) |
unsigned short GetListenPort | ( | ) |
CAddress GetLocalAddress | ( | const CNetAddr * | paddrPeer, |
ServiceFlags | nLocalServices | ||
) |
bool IsLimited | ( | enum Network | net | ) |
bool IsLimited | ( | const CNetAddr & | addr | ) |
bool IsLocal | ( | const CService & | addr | ) |
bool IsPeerAddrLocalGood | ( | CNode * | pnode | ) |
bool IsReachable | ( | enum Network | net | ) |
bool IsReachable | ( | const CNetAddr & | addr | ) |
void MapPort | ( | bool | fUseUPnP | ) |
int64_t PoissonNextSend | ( | int64_t | nNow, |
int | average_interval_seconds | ||
) |
bool RemoveLocal | ( | const CService & | addr | ) |
bool SeenLocal | ( | const CService & | addr | ) |
void SetLimited | ( | enum Network | net, |
bool | fLimited = true |
||
) |
CCriticalSection cs_mapLocalHost |
limitedmap<uint256, int64_t> mapAlreadyAskedFor |
std::map<CNetAddr, LocalServiceInfo> mapLocalHost |