aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorMarko Bencun <marko.bencun@monetas.net>2017-06-15 09:39:07 +0200
committerMarko Bencun <marko.bencun@monetas.net>2017-07-19 23:34:50 +0200
commit352d582ba240b825cb834cdde041864bafca0e21 (patch)
tree07edcd406696dec9a5e417f103cbf2acf801138c /src/net.h
parent7b6e8bc4424006119dc537699c8b3b3121e0b3c3 (diff)
Add vConnect to CConnman::Options
Split the "-connect" argument parsing out of CConnman and put it into AppInitMain().
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index b9a11c62f2..44e0e78fce 100644
--- a/src/net.h
+++ b/src/net.h
@@ -145,6 +145,8 @@ public:
std::vector<std::string> vSeedNodes;
std::vector<CSubNet> vWhitelistedRange;
std::vector<CService> vBinds, vWhiteBinds;
+ bool m_use_addrman_outgoing = true;
+ std::vector<std::string> m_specified_outgoing;
};
CConnman(uint64_t seed0, uint64_t seed1);
~CConnman();
@@ -293,7 +295,7 @@ private:
void ThreadOpenAddedConnections();
void AddOneShot(const std::string& strDest);
void ProcessOneShot();
- void ThreadOpenConnections();
+ void ThreadOpenConnections(std::vector<std::string> connect);
void ThreadMessageHandler();
void AcceptConnection(const ListenSocket& hListenSocket);
void ThreadSocketHandler();