summaryrefslogtreecommitdiff
path: root/syncSocket.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-27 22:43:14 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-27 22:43:14 +0000
commit4083c982656fe3d79168b228aca56cef2de2ea0e (patch)
tree6574a170eb044ea75dd4f96cd22cb6b4c171d465 /syncSocket.cpp
parentadded command line parameter for master key and salt (diff)
added route syncing
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()