diff options
Diffstat (limited to 'src/syncServer.cpp')
-rw-r--r-- | src/syncServer.cpp | 8 |
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) { |