summaryrefslogtreecommitdiff
path: root/syncRouteCommand.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-04-12 11:38:42 +0000
committerOthmar Gsenger <otti@anytun.org>2008-04-12 11:38:42 +0000
commitfffd213c8cba2135afda493d797c41c10354770e (patch)
treebb5eea1b12871d8c3fed0e687d83be3e504d11b2 /syncRouteCommand.h
parentsvn cleanup (diff)
big svn cleanup
Diffstat (limited to 'syncRouteCommand.h')
-rw-r--r--syncRouteCommand.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/syncRouteCommand.h b/syncRouteCommand.h
deleted file mode 100644
index e8d1550..0000000
--- a/syncRouteCommand.h
+++ /dev/null
@@ -1,34 +0,0 @@
-#ifndef _SYNCROUTECOMMAND_H
-#define _SYNCROUTECOMMAND_H
-#include <boost/archive/text_oarchive.hpp>
-#include <boost/archive/text_iarchive.hpp>
-
-#include "threadUtils.hpp"
-#include "networkPrefix.h"
-#include "routingTable.h"
-
-class SyncRouteCommand
-{
-public:
- SyncRouteCommand(const NetworkPrefix & );
- SyncRouteCommand();
- NetworkPrefix getPrefix() const;
-
-private:
- SyncRouteCommand(const SyncRouteCommand &);
- uint16_t count_;
- NetworkPrefix addr_;
- friend class boost::serialization::access;
- template<class Archive>
- void serialize(Archive & ar, const unsigned int version)
- {
- Lock lock(gRoutingTable.getMutex());
- ar & addr_;
-// u_int16_t & mux (gRoutingTable.getOrNewRoutingTEUnlocked(addr_));
-// ar & mux;
- ar & (*(gRoutingTable.getOrNewRoutingTEUnlocked(addr_)));
- };
-};
-
-
-#endif // _SYNCCOMMAND_H