From 62c4bf0fd2b504798c120284958105681f9e20f6 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Thu, 28 Feb 2008 17:09:06 +0000 Subject: further routing fixes --- syncSocket.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'syncSocket.cpp') diff --git a/syncSocket.cpp b/syncSocket.cpp index ad7781b..d14ca23 100644 --- a/syncSocket.cpp +++ b/syncSocket.cpp @@ -36,11 +36,14 @@ void SyncSocket::OnAccept() Send(sout.str()); } sleep(1); - if( ! gRoutingTable.empty()) - { + //TODO Locking here + RoutingMap::iterator it = gRoutingTable.getBeginUnlocked(); + for (;it!=gRoutingTable.getEndUnlocked();++it) + { + NetworkPrefix tmp(it->first); std::ostringstream sout; boost::archive::text_oarchive oa(sout); - const SyncCommand scom(0); + const SyncCommand scom(tmp); oa << scom; Send(sout.str()); } -- cgit v1.2.3