summaryrefslogtreecommitdiff
path: root/syncCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'syncCommand.h')
-rw-r--r--syncCommand.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/syncCommand.h b/syncCommand.h
index db82153..2672960 100644
--- a/syncCommand.h
+++ b/syncCommand.h
@@ -7,6 +7,7 @@
#include "threadUtils.hpp"
#include "syncConnectionCommand.h"
#include "syncRouteCommand.h"
+#include "syncRtpCommand.h"
#include "networkPrefix.h"
#include <string>
@@ -15,6 +16,7 @@ class SyncCommand
public:
SyncCommand(ConnectionList & cl );
SyncCommand(ConnectionList & cl ,u_int16_t mux);
+ SyncCommand(const std::string &);
SyncCommand(NetworkPrefix);
~SyncCommand();
@@ -22,6 +24,7 @@ private:
SyncCommand(const SyncCommand &);
SyncConnectionCommand * scc_;
SyncRouteCommand * src_;
+ SyncRtpCommand * srtpc_;
friend class boost::serialization::access;
template<class Archive>
void serialize(Archive & ar, const unsigned int version)
@@ -35,12 +38,18 @@ private:
{
syncstr = "route";
}
+ if ( src_)
+ {
+ syncstr = "rtp";
+ }
ar & syncstr;
// std::cout << "syncstr received " <<syncstr << std::endl;
if (syncstr == "connection")
ar & *scc_;
if (syncstr == "route")
ar & *src_;
+ if (syncstr == "rtp")
+ ar & *srtpc_;
// std::cout << "syncstr done " <<syncstr << std::endl;
}
};