diff options
author | Christian Pointner <equinox@anytun.org> | 2010-01-13 09:56:01 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2010-01-13 09:56:01 +0000 |
commit | 621f2b3fa3b6484d7ce216a18995604ca81873d1 (patch) | |
tree | 3aa185c5f45c744ba76b80336d5a54b16e39a7c2 /src/syncTcpConnection.cpp | |
parent | updated changelog (diff) |
added multi socket to SyncServer (better of IPv4 and IPv6)
Diffstat (limited to 'src/syncTcpConnection.cpp')
-rw-r--r-- | src/syncTcpConnection.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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) |