1 #ifndef _SYNCROUTECOMMAND_H
2 #define _SYNCROUTECOMMAND_H
3 #include <boost/archive/text_oarchive.hpp>
4 #include <boost/archive/text_iarchive.hpp>
6 #include "threadUtils.hpp"
7 #include "networkPrefix.h"
8 #include "routingTable.h"
10 class SyncRouteCommand
13 SyncRouteCommand(const NetworkPrefix
& );
15 NetworkPrefix
getPrefix() const;
18 SyncRouteCommand(const SyncRouteCommand
&);
21 friend class boost::serialization::access
;
22 template<class Archive
>
23 void serialize(Archive
& ar
, const unsigned int version
)
25 Lock
lock(gRoutingTable
.getMutex());
27 // u_int16_t & mux (gRoutingTable.getOrNewRoutingTEUnlocked(addr_));
29 ar
& (*(gRoutingTable
.getOrNewRoutingTEUnlocked(addr_
)));
34 #endif // _SYNCCOMMAND_H