From 43424d46fbb74958cd5fc358d57c757b53436585 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Mon, 12 Jan 2009 20:53:14 +0000 Subject: moved rtp stuff to anyrtpproxy and removed it from anytun --- src/syncOnConnect.hpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/syncOnConnect.hpp') diff --git a/src/syncOnConnect.hpp b/src/syncOnConnect.hpp index b0b8963..0b454e7 100644 --- a/src/syncOnConnect.hpp +++ b/src/syncOnConnect.hpp @@ -31,6 +31,7 @@ void syncOnConnect(SyncTcpConnection * connptr) { + //TODO Locking here ConnectionList & cl_(gConnectionList); ConnectionMap::iterator cit = cl_.getBeginUnlocked(); for (;cit!=cl_.getEndUnlocked();++cit) @@ -63,18 +64,5 @@ void syncOnConnect(SyncTcpConnection * connptr) connptr->Send(sout.str()); } } - //TODO Locking here - RtpSessionMap::iterator rit = gRtpSessionTable.getBeginUnlocked(); - for (;rit!=gRtpSessionTable.getEndUnlocked();++rit) - { - std::ostringstream sout; - boost::archive::text_oarchive oa(sout); - const SyncCommand scom(rit->first); - oa << scom; - std::stringstream lengthout; - lengthout << std::setw(5) << std::setfill('0') << sout.str().size()<< ' '; - connptr->Send(lengthout.str()); - connptr->Send(sout.str()); - } } -- cgit v1.2.3