summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-08-04 14:36:22 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-08-04 14:36:22 +0200
commit2c01957dfe1135955627cbbbffddc70d090d2656 (patch)
treebd4da7aac59eb33ea2487f3ee078920dfcc07f1b
parenta83e2311dafcba608254ee31a6c0fee66c505eef (diff)
Fix compiling with Boost 1.47.0.
-rw-r--r--httpd.cpp2
-rw-r--r--telnetd.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/httpd.cpp b/httpd.cpp
index e8d8a2c..d88efb8 100644
--- a/httpd.cpp
+++ b/httpd.cpp
@@ -11,7 +11,7 @@ void HTTP::Server::add_handler(const std::string& name, Handler handler) {
}
void HTTP::Server::start_accept() {
- Connection::p new_connection = Connection::p(new Connection(acceptor_.io_service()));
+ Connection::p new_connection = Connection::p(new Connection(acceptor_.get_io_service()));
acceptor_.async_accept(new_connection->socket, boost::bind(&Server::handle_accept, this, new_connection, boost::asio::placeholders::error));
}
diff --git a/telnetd.cpp b/telnetd.cpp
index 9999d50..9129b8e 100644
--- a/telnetd.cpp
+++ b/telnetd.cpp
@@ -7,7 +7,7 @@ telnet::Server::Server(boost::asio::io_service& io_service, const tcp::endpoint&
}
void telnet::Server::start_accept() {
- Connection::p new_connection = Connection::p(new Connection(acceptor_.io_service()));
+ Connection::p new_connection = Connection::p(new Connection(acceptor_.get_io_service()));
acceptor_.async_accept(new_connection->socket, boost::bind(&Server::handle_accept, this, new_connection, boost::asio::placeholders::error));
}