From abef27c309c3e3bc607ab3fd44ef4479290911f7 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Thu, 28 Feb 2008 15:16:46 +0000 Subject: added joobla template --- syncRouteCommand.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'syncRouteCommand.h') diff --git a/syncRouteCommand.h b/syncRouteCommand.h index 913673c..2e38eb4 100644 --- a/syncRouteCommand.h +++ b/syncRouteCommand.h @@ -4,25 +4,27 @@ #include #include "threadUtils.hpp" +#include "networkAddress.h" +#include "routingTable.h" class SyncRouteCommand { public: - SyncRouteCommand(u_int16_t mux); + SyncRouteCommand(const NetworkAddress & ); SyncRouteCommand(); - u_int16_t getMux() const; + NetworkAddress getAddr() const; private: SyncRouteCommand(const SyncRouteCommand &); - u_int16_t mux_; + NetworkAddress addr_; friend class boost::serialization::access; template void serialize(Archive & ar, const unsigned int version) { - //Lock lock(gRoutingTable.getMutex()); - ar & mux_; - // ConnectionParam & conn = cl_.getOrNewConnectionUnlocked(mux_); - // ar & conn; + Lock lock(gRoutingTable.getMutex()); + ar & addr_; + u_int16_t & mux = gRoutingTable.getOrNewRoutingTEUnlocked(addr_); + ar & mux; } }; -- cgit v1.2.3