virtual void handle_start() { tcp::resolver resolver(main_pool().io_service()); tcp::endpoint endpoint = *resolver.resolve(addr_query_); acceptor_.reset(new tcp::acceptor(main_pool().io_service())); acceptor_->open(endpoint.protocol()); acceptor_->set_option(tcp::acceptor::reuse_address(true)); acceptor_->bind(endpoint); acceptor_->listen(); start_accept(); std::cout << "Server started" << std::endl; }