summaryrefslogtreecommitdiff
path: root/syncRouteCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'syncRouteCommand.h')
-rw-r--r--syncRouteCommand.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/syncRouteCommand.h b/syncRouteCommand.h
new file mode 100644
index 0000000..913673c
--- /dev/null
+++ b/syncRouteCommand.h
@@ -0,0 +1,30 @@
+#ifndef _SYNCROUTECOMMAND_H
+#define _SYNCROUTECOMMAND_H
+#include <boost/archive/text_oarchive.hpp>
+#include <boost/archive/text_iarchive.hpp>
+
+#include "threadUtils.hpp"
+
+class SyncRouteCommand
+{
+public:
+ SyncRouteCommand(u_int16_t mux);
+ SyncRouteCommand();
+ u_int16_t getMux() const;
+
+private:
+ SyncRouteCommand(const SyncRouteCommand &);
+ u_int16_t mux_;
+ 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;
+ }
+};
+
+
+#endif // _SYNCCOMMAND_H