summaryrefslogtreecommitdiff
path: root/src/syncServer.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-11-17 22:42:31 +0000
committerOthmar Gsenger <otti@anytun.org>2008-11-17 22:42:31 +0000
commit6b560cd6d1d2159a7cbd5be06ae5309704627f06 (patch)
treec5d516dbd7e6f41b6aab160f69fbe6ff8e225af0 /src/syncServer.cpp
parentremoved outdated plain_tool code (diff)
fixed sync support
Diffstat (limited to 'src/syncServer.cpp')
-rw-r--r--src/syncServer.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/syncServer.cpp b/src/syncServer.cpp
index fc0c4bc..ea6df4b 100644
--- a/src/syncServer.cpp
+++ b/src/syncServer.cpp
@@ -19,6 +19,14 @@ void SyncServer::start_accept()
asio::placeholders::error));
}
+void SyncServer::send(std::string message)
+{
+for(std::list<SyncTcpConnection::pointer>::iterator it = conns_.begin() ;it != conns_.end(); ++it) {
+ (*it)->Send(message);
+ }
+
+}
+
void SyncServer::handle_accept(SyncTcpConnection::pointer new_connection,
const asio::error_code& error)
{