diff options
author | Othmar Gsenger <otti@anytun.org> | 2009-01-12 20:53:14 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2009-01-12 20:53:14 +0000 |
commit | 43424d46fbb74958cd5fc358d57c757b53436585 (patch) | |
tree | f0b0f1199c0946bca98ed3373191a5a991bd2229 /src/syncOnConnect.hpp | |
parent | clean up Makefile (diff) |
moved rtp stuff to anyrtpproxy and removed it from anytun
Diffstat (limited to 'src/syncOnConnect.hpp')
-rw-r--r-- | src/syncOnConnect.hpp | 14 |
1 files changed, 1 insertions, 13 deletions
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()); - } } |