diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-02-28 15:16:46 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-02-28 15:16:46 +0000 |
commit | abef27c309c3e3bc607ab3fd44ef4479290911f7 (patch) | |
tree | e75fdbbb6a18b49fd116fcf8fd884bb2a060f3b9 /syncRouteCommand.h | |
parent | more edits on dokumentation.odt (diff) |
added joobla template
Diffstat (limited to 'syncRouteCommand.h')
-rw-r--r-- | syncRouteCommand.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/syncRouteCommand.h b/syncRouteCommand.h index 913673c..2e38eb4 100644 --- a/syncRouteCommand.h +++ b/syncRouteCommand.h @@ -4,25 +4,27 @@ #include <boost/archive/text_iarchive.hpp> #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<class Archive> 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; } }; |