Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 532 Lines • ▼ Show 20 Lines | |||||
bool SeenLocal(const CService &addr); | bool SeenLocal(const CService &addr); | ||||
bool IsLocal(const CService &addr); | bool IsLocal(const CService &addr); | ||||
bool GetLocal(CService &addr, const CNetAddr *paddrPeer = nullptr); | bool GetLocal(CService &addr, const CNetAddr *paddrPeer = nullptr); | ||||
CAddress GetLocalAddress(const CNetAddr *paddrPeer, | CAddress GetLocalAddress(const CNetAddr *paddrPeer, | ||||
ServiceFlags nLocalServices); | ServiceFlags nLocalServices); | ||||
extern bool fDiscover; | extern bool fDiscover; | ||||
extern bool fListen; | extern bool fListen; | ||||
extern bool fRelayTxes; | extern bool g_relay_txes; | ||||
struct LocalServiceInfo { | struct LocalServiceInfo { | ||||
int nScore; | int nScore; | ||||
int nPort; | int nPort; | ||||
}; | }; | ||||
extern RecursiveMutex cs_mapLocalHost; | extern RecursiveMutex cs_mapLocalHost; | ||||
extern std::map<CNetAddr, LocalServiceInfo> | extern std::map<CNetAddr, LocalServiceInfo> | ||||
▲ Show 20 Lines • Show All 358 Lines • Show Last 20 Lines |