|
|
@ -87,7 +87,6 @@ unsigned int SendBufferSize(); |
|
|
|
|
|
|
|
|
|
|
|
typedef int NodeId; |
|
|
|
typedef int NodeId; |
|
|
|
|
|
|
|
|
|
|
|
void AddOneShot(const std::string& strDest); |
|
|
|
|
|
|
|
CNode* FindNode(const CNetAddr& ip); |
|
|
|
CNode* FindNode(const CNetAddr& ip); |
|
|
|
CNode* FindNode(const CSubNet& subNet); |
|
|
|
CNode* FindNode(const CSubNet& subNet); |
|
|
|
CNode* FindNode(const std::string& addrName); |
|
|
|
CNode* FindNode(const std::string& addrName); |
|
|
@ -137,6 +136,7 @@ public: |
|
|
|
void GetBanned(banmap_t &banmap); |
|
|
|
void GetBanned(banmap_t &banmap); |
|
|
|
void SetBanned(const banmap_t &banmap); |
|
|
|
void SetBanned(const banmap_t &banmap); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void AddOneShot(const std::string& strDest); |
|
|
|
private: |
|
|
|
private: |
|
|
|
struct ListenSocket { |
|
|
|
struct ListenSocket { |
|
|
|
SOCKET socket; |
|
|
|
SOCKET socket; |
|
|
@ -171,6 +171,8 @@ private: |
|
|
|
bool setBannedIsDirty; |
|
|
|
bool setBannedIsDirty; |
|
|
|
bool fAddressesInitialized; |
|
|
|
bool fAddressesInitialized; |
|
|
|
CAddrMan addrman; |
|
|
|
CAddrMan addrman; |
|
|
|
|
|
|
|
std::deque<std::string> vOneShots; |
|
|
|
|
|
|
|
CCriticalSection cs_vOneShots; |
|
|
|
}; |
|
|
|
}; |
|
|
|
extern std::unique_ptr<CConnman> g_connman; |
|
|
|
extern std::unique_ptr<CConnman> g_connman; |
|
|
|
void MapPort(bool fUseUPnP); |
|
|
|
void MapPort(bool fUseUPnP); |
|
|
|