summaryrefslogtreecommitdiff
path: root/syncCommand.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-03-08 18:39:15 +0000
committerOthmar Gsenger <otti@anytun.org>2008-03-08 18:39:15 +0000
commitb9ae5e0ed6e4238c7410265ed5530931d4552f7d (patch)
tree79f0f1fffb5120931d834987ec4bbb04c9a4660d /syncCommand.h
parentadded RtpSessionTable (diff)
added SyncRtpCommand
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;
}
};