diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-11 22:25:12 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-11 22:25:12 -0400 |
| commit | 2510f594e57a92ce3e0e5033b13468b035275fef (patch) | |
| tree | 3dbe0b1cf4eb9e950d5c5625d73e92d23502f5bd /node/Switch.hpp | |
| parent | 339b2314ea168d302bae4b5f7fbf828b210e5450 (diff) | |
| download | infinitytier-2510f594e57a92ce3e0e5033b13468b035275fef.tar.gz infinitytier-2510f594e57a92ce3e0e5033b13468b035275fef.zip | |
It builds now. The Switch object has been put on a diet. Now to test on the testnet before merge to master.
Diffstat (limited to 'node/Switch.hpp')
| -rw-r--r-- | node/Switch.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/node/Switch.hpp b/node/Switch.hpp index f69e26bf..0d1828be 100644 --- a/node/Switch.hpp +++ b/node/Switch.hpp @@ -238,6 +238,23 @@ private: std::map< Array< Address,2 >,uint64_t > _lastUniteAttempt; // key is always sorted in ascending order, for set-like behavior Mutex _lastUniteAttempt_m; + + struct ContactQueueEntry + { + ContactQueueEntry() {} + ContactQueueEntry(const SharedPtr<Peer> &p,uint64_t ft,Demarc::Port lp,const InetAddress &a) : + peer(p), + fireAtTime(ft), + localPort(lp), + inaddr(a) {} + + SharedPtr<Peer> peer; + uint64_t fireAtTime; + Demarc::Port localPort; + InetAddress inaddr; + }; + std::list<ContactQueueEntry> _contactQueue; + Mutex _contactQueue_m; }; } // namespace ZeroTier |
