From 621f2b3fa3b6484d7ce216a18995604ca81873d1 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 13 Jan 2010 09:56:01 +0000 Subject: added multi socket to SyncServer (better of IPv4 and IPv6) --- src/syncTcpConnection.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/syncTcpConnection.cpp') diff --git a/src/syncTcpConnection.cpp b/src/syncTcpConnection.cpp index d243633..08875c7 100644 --- a/src/syncTcpConnection.cpp +++ b/src/syncTcpConnection.cpp @@ -48,10 +48,10 @@ void SyncTcpConnection::start() void SyncTcpConnection::Send(std::string message) { - boost::asio::async_write(socket_, boost::asio::buffer(message), - boost::bind(&SyncTcpConnection::handle_write, shared_from_this(), - boost::asio::placeholders::error, - boost::asio::placeholders::bytes_transferred)); + boost::asio::async_write(socket_, boost::asio::buffer(message), + boost::bind(&SyncTcpConnection::handle_write, shared_from_this(), + boost::asio::placeholders::error, + boost::asio::placeholders::bytes_transferred)); } SyncTcpConnection::SyncTcpConnection(boost::asio::io_service& io_service) : socket_(io_service) -- cgit v1.2.3