summaryrefslogtreecommitdiff
path: root/syncSocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'syncSocket.cpp')
-rw-r--r--syncSocket.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/syncSocket.cpp b/syncSocket.cpp
index 6476441..29d1ca8 100644
--- a/syncSocket.cpp
+++ b/syncSocket.cpp
@@ -1,7 +1,7 @@
#include <sstream>
#include <iostream>
#include <string>
-
+#include "routingTable.h"
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
@@ -35,6 +35,14 @@ void SyncSocket::OnAccept()
oa << scom;
Send(sout.str());
}
+ if( ! gRoutingTable.empty())
+ {
+ std::ostringstream sout;
+ boost::archive::text_oarchive oa(sout);
+ const SyncCommand scom(0);
+ oa << scom;
+ Send(sout.str());
+ }
}
//void StatusSocket::InitSSLServer()