summaryrefslogtreecommitdiff
path: root/syncRouteCommand.h
blob: 913673ceac438c788fccf305bfa8c59cbbc477cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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