From 6b4768c54904beb09cd665a0fd4df6adcd046f19 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Tue, 18 Dec 2007 15:42:12 +0000 Subject: includes missing files --- syncCommand.cpp | 16 ++++++++++++++++ syncCommand.h | 29 +++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 syncCommand.cpp create mode 100644 syncCommand.h diff --git a/syncCommand.cpp b/syncCommand.cpp new file mode 100644 index 0000000..d5bb8dc --- /dev/null +++ b/syncCommand.cpp @@ -0,0 +1,16 @@ +#include "syncCommand.h" + +SyncCommand::SyncCommand(ConnectionList & cl ) +:cl_(cl) +{ +} + +SyncCommand::SyncCommand(ConnectionList & cl, u_int16_t mux ) +:cl_(cl),mux_(mux) +{ +} + +u_int16_t SyncCommand::getMux() const +{ + return mux_; +} 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 +#include + +#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 + void serialize(Archive & ar, const unsigned int version) + { + ar & mux_; + ConnectionParam & conn = cl_.getOrNewConnection(mux_); + ar & conn; + } +}; + + +#endif // _SYNCSOCKET_H -- cgit v1.2.3