diff options
author | Marko Bencun <marko.bencun@monetas.net> | 2017-06-15 09:39:07 +0200 |
---|---|---|
committer | Marko Bencun <marko.bencun@monetas.net> | 2017-07-19 23:34:50 +0200 |
commit | 352d582ba240b825cb834cdde041864bafca0e21 (patch) | |
tree | 07edcd406696dec9a5e417f103cbf2acf801138c /src/net.h | |
parent | 7b6e8bc4424006119dc537699c8b3b3121e0b3c3 (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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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(); |