summaryrefslogtreecommitdiff
path: root/syncRouteCommand.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-28 15:16:46 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-28 15:16:46 +0000
commitabef27c309c3e3bc607ab3fd44ef4479290911f7 (patch)
treee75fdbbb6a18b49fd116fcf8fd884bb2a060f3b9 /syncRouteCommand.h
parentmore edits on dokumentation.odt (diff)
added joobla template
Diffstat (limited to 'syncRouteCommand.h')
-rw-r--r--syncRouteCommand.h16
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;
}
};