added linuxtage presentation
[anytun.git] / src / syncRtpCommand.h
blobcc1309ead97fff69ed3b832a1309e20a73bc2d65
1 #ifndef _SYNCRTPCOMMAND_H
2 #define _SYNCRTPCOMMAND_H
3 #include <boost/archive/text_oarchive.hpp>
4 #include <boost/archive/text_iarchive.hpp>
6 #include "threadUtils.hpp"
7 #include "rtpSessionTable.h"
9 class SyncRtpCommand
11 public:
12 SyncRtpCommand(const std::string & );
13 SyncRtpCommand();
14 std::string getCallId() const;
16 private:
17 SyncRtpCommand(const SyncRtpCommand &);
18 std::string callid_;
19 friend class boost::serialization::access;
20 template<class Archive>
21 void serialize(Archive & ar, const unsigned int version)
23 Lock lock(gRtpSessionTable.getMutex());
24 ar & callid_;
25 bool is_new;
26 ar & gRtpSessionTable.getOrNewSessionUnlocked(callid_, is_new);
31 #endif // _SYNCCOMMAND_H