summaryrefslogtreecommitdiff
path: root/syncCommand.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-12-18 15:42:12 +0000
committerOthmar Gsenger <otti@anytun.org>2007-12-18 15:42:12 +0000
commit6b4768c54904beb09cd665a0fd4df6adcd046f19 (patch)
tree7e1014de24cf6c84f60e7a0ca09a11ab7359fe4a /syncCommand.h
parentadded Synccommand / now connection updates work / sync is multi connection ca... (diff)
includes missing files
Diffstat (limited to 'syncCommand.h')
-rw-r--r--syncCommand.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/syncCommand.h b/syncCommand.h
new file mode 100644
index 0000000..6e1e3ea
--- /dev/null
+++ b/syncCommand.h
@@ -0,0 +1,29 @@
+#ifndef _SYNCCOMMAND_H
+#define _SYNCCOMMAND_H
+#include <boost/archive/text_oarchive.hpp>
+#include <boost/archive/text_iarchive.hpp>
+
+#include "connectionList.h"
+
+class SyncCommand
+{
+public:
+ SyncCommand(ConnectionList & cl );
+ SyncCommand(ConnectionList & cl ,u_int16_t mux);
+ u_int16_t getMux() const;
+
+private:
+ ConnectionList & cl_;
+ u_int16_t mux_;
+ friend class boost::serialization::access;
+ template<class Archive>
+ void serialize(Archive & ar, const unsigned int version)
+ {
+ ar & mux_;
+ ConnectionParam & conn = cl_.getOrNewConnection(mux_);
+ ar & conn;
+ }
+};
+
+
+#endif // _SYNCSOCKET_H