Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 438 Lines • ▼ Show 20 Lines | private: | ||||
* Flag for deciding to connect to an extra outbound peer, in excess of | * Flag for deciding to connect to an extra outbound peer, in excess of | ||||
* nMaxOutbound. | * nMaxOutbound. | ||||
* This takes the place of a feeler connection. | * This takes the place of a feeler connection. | ||||
*/ | */ | ||||
std::atomic_bool m_try_another_outbound_peer; | std::atomic_bool m_try_another_outbound_peer; | ||||
friend struct CConnmanTest; | friend struct CConnmanTest; | ||||
}; | }; | ||||
extern std::unique_ptr<CConnman> g_connman; | extern std::unique_ptr<CConnman> g_connman; | ||||
void Discover(); | void Discover(); | ||||
void StartMapPort(); | void StartMapPort(); | ||||
void InterruptMapPort(); | void InterruptMapPort(); | ||||
void StopMapPort(); | void StopMapPort(); | ||||
unsigned short GetListenPort(); | unsigned short GetListenPort(); | ||||
bool BindListenPort(const CService &bindAddr, std::string &strError, | bool BindListenPort(const CService &bindAddr, std::string &strError, | ||||
bool fWhitelisted = false); | bool fWhitelisted = false); | ||||
▲ Show 20 Lines • Show All 404 Lines • Show Last 20 Lines |