summaryrefslogtreecommitdiff
path: root/node/Switch.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-07-11 22:25:12 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-07-11 22:25:12 -0400
commit2510f594e57a92ce3e0e5033b13468b035275fef (patch)
tree3dbe0b1cf4eb9e950d5c5625d73e92d23502f5bd /node/Switch.hpp
parent339b2314ea168d302bae4b5f7fbf828b210e5450 (diff)
downloadinfinitytier-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.hpp17
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