server: Use std::shared_ptr
diff --git a/server/server.cpp b/server/server.cpp
index 9ffa4eb..fd91b04 100644
--- a/server/server.cpp
+++ b/server/server.cpp
@@ -28,14 +28,17 @@
//
#include "server.hpp"
-#include "logging.h"
-#include <boost/bind.hpp>
+#include "core/logging.hpp"
+
#include <signal.h>
-INIT_LOGGER("HttpServer");
namespace http {
namespace server {
+using namespace ndn::chronoshare;
+
+INIT_LOGGER("HttpServer");
+
server::server(const std::string& address, const std::string& port, const std::string& doc_root)
: io_service_()
,
@@ -53,7 +56,7 @@
//#if defined(SIGQUIT)
// signals_.add(SIGQUIT);
//#endif // defined(SIGQUIT)
- // signals_.async_wait(boost::bind(&server::handle_stop, this));
+ // signals_.async_wait(std::bind(&server::handle_stop, this));
// Open the acceptor with the option to reuse the address (i.e. SO_REUSEADDR).
boost::asio::ip::tcp::resolver resolver(io_service_);
@@ -89,7 +92,7 @@
{
new_connection_.reset(new connection(io_service_, connection_manager_, request_handler_));
acceptor_.async_accept(new_connection_->socket(),
- boost::bind(&server::handle_accept, this, boost::asio::placeholders::error));
+ std::bind(&server::handle_accept, this, std::placeholders::_1));
}
void