summaryrefslogtreecommitdiff
path: root/node/Switch.hpp
diff options
context:
space:
mode:
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