From 4083c982656fe3d79168b228aca56cef2de2ea0e Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Wed, 27 Feb 2008 22:43:14 +0000 Subject: added route syncing --- syncRouteCommand.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 syncRouteCommand.h (limited to 'syncRouteCommand.h') 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 +#include + +#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 + void serialize(Archive & ar, const unsigned int version) + { + //Lock lock(gRoutingTable.getMutex()); + ar & mux_; + // ConnectionParam & conn = cl_.getOrNewConnectionUnlocked(mux_); + // ar & conn; + } +}; + + +#endif // _SYNCCOMMAND_H -- cgit v1.2.3