aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-07-30 15:31:36 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-07-30 15:41:17 +0200
commitc91a9471be7a96311a7e1452a3624aa557bc185d (patch)
treec95261b710c16db57073975196de5cdd33d647be /src/net.h
parent60dc8e4208058814494b301c355a5996af9517a9 (diff)
Add IsReachable(net) function
Allows other parts of the program to query for reachable status of a network. Similar to IsLimited(net).
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 2d9325abf9..8656766e26 100644
--- a/src/net.h
+++ b/src/net.h
@@ -106,6 +106,7 @@ bool AddLocal(const CNetAddr& addr, int nScore = LOCAL_NONE);
bool SeenLocal(const CService& addr);
bool IsLocal(const CService& addr);
bool GetLocal(CService &addr, const CNetAddr *paddrPeer = NULL);
+bool IsReachable(enum Network net);
bool IsReachable(const CNetAddr &addr);
void SetReachable(enum Network net, bool fFlag = true);
CAddress GetLocalAddress(const CNetAddr *paddrPeer = NULL);