summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2011-12-30 04:58:29 (GMT)
committerChristian Pointner <equinox@anytun.org>2011-12-30 04:58:29 (GMT)
commitd4640cf194b49047323475f22af1b48f20aaeff9 (patch)
tree5970a6884fdc8bf3e0732b19ec2d76869a18c4e9
parent5f81fd86447026a03d8b396f169b1a292a29d13d (diff)
changed boost::asio::ip::tcp::acceptor::io_service() to get_io_service()
-rw-r--r--src/syncServer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syncServer.cpp b/src/syncServer.cpp
index 4003dba..71052b8 100644
--- a/src/syncServer.cpp
+++ b/src/syncServer.cpp
@@ -112,7 +112,7 @@ void SyncServer::start_accept()
std::list<AcceptorsElement>::iterator it = acceptors_.begin();
for(; it != acceptors_.end(); ++it) {
if(!it->started_) {
- SyncTcpConnection::pointer new_connection = SyncTcpConnection::create(it->acceptor_->io_service());
+ SyncTcpConnection::pointer new_connection = SyncTcpConnection::create(it->acceptor_->get_io_service());
conns_.push_back(new_connection);
it->acceptor_->async_accept(new_connection->socket(),
boost::bind(&SyncServer::handle_accept, this, new_connection, boost::asio::placeholders::error, it));