asio: Rename http2::get_io_services() as http2::io_services()
The naming convention in asio lib does not use get_something.
This commit is contained in:
parent
486dba8d8a
commit
dd4d549dc1
|
@ -93,7 +93,7 @@ boost::asio::io_service &io_service_pool::get_io_service() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::vector<std::shared_ptr<boost::asio::io_service>> &
|
const std::vector<std::shared_ptr<boost::asio::io_service>> &
|
||||||
io_service_pool::get_io_services() const {
|
io_service_pool::io_services() const {
|
||||||
return io_services_;
|
return io_services_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ public:
|
||||||
|
|
||||||
/// Get access to all io_service objects.
|
/// Get access to all io_service objects.
|
||||||
const std::vector<std::shared_ptr<boost::asio::io_service>> &
|
const std::vector<std::shared_ptr<boost::asio::io_service>> &
|
||||||
get_io_services() const;
|
io_services() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/// The pool of io_services.
|
/// The pool of io_services.
|
||||||
|
|
|
@ -180,8 +180,8 @@ void server::stop() { io_service_pool_.stop(); }
|
||||||
void server::join() { io_service_pool_.join(); }
|
void server::join() { io_service_pool_.join(); }
|
||||||
|
|
||||||
const std::vector<std::shared_ptr<boost::asio::io_service>> &
|
const std::vector<std::shared_ptr<boost::asio::io_service>> &
|
||||||
server::get_io_services() const {
|
server::io_services() const {
|
||||||
return io_service_pool_.get_io_services();
|
return io_service_pool_.io_services();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace server
|
} // namespace server
|
||||||
|
|
|
@ -77,7 +77,7 @@ public:
|
||||||
|
|
||||||
/// Get access to all io_service objects.
|
/// Get access to all io_service objects.
|
||||||
const std::vector<std::shared_ptr<boost::asio::io_service>> &
|
const std::vector<std::shared_ptr<boost::asio::io_service>> &
|
||||||
get_io_services() const;
|
io_services() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/// Initiate an asynchronous accept operation.
|
/// Initiate an asynchronous accept operation.
|
||||||
|
|
|
@ -86,8 +86,8 @@ void http2::stop() { impl_->stop(); }
|
||||||
void http2::join() { return impl_->join(); }
|
void http2::join() { return impl_->join(); }
|
||||||
|
|
||||||
const std::vector<std::shared_ptr<boost::asio::io_service>> &
|
const std::vector<std::shared_ptr<boost::asio::io_service>> &
|
||||||
http2::get_io_services() const {
|
http2::io_services() const {
|
||||||
return impl_->get_io_services();
|
return impl_->io_services();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace server
|
} // namespace server
|
||||||
|
|
|
@ -73,8 +73,8 @@ void http2_impl::stop() { return server_->stop(); }
|
||||||
void http2_impl::join() { return server_->join(); }
|
void http2_impl::join() { return server_->join(); }
|
||||||
|
|
||||||
const std::vector<std::shared_ptr<boost::asio::io_service>> &
|
const std::vector<std::shared_ptr<boost::asio::io_service>> &
|
||||||
http2_impl::get_io_services() const {
|
http2_impl::io_services() const {
|
||||||
return server_->get_io_services();
|
return server_->io_services();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace server
|
} // namespace server
|
||||||
|
|
|
@ -53,7 +53,7 @@ public:
|
||||||
void stop();
|
void stop();
|
||||||
void join();
|
void join();
|
||||||
const std::vector<std::shared_ptr<boost::asio::io_service>> &
|
const std::vector<std::shared_ptr<boost::asio::io_service>> &
|
||||||
get_io_services() const;
|
io_services() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::unique_ptr<server> server_;
|
std::unique_ptr<server> server_;
|
||||||
|
|
|
@ -212,7 +212,7 @@ public:
|
||||||
|
|
||||||
// Get access to the io_service objects.
|
// Get access to the io_service objects.
|
||||||
const std::vector<std::shared_ptr<boost::asio::io_service>> &
|
const std::vector<std::shared_ptr<boost::asio::io_service>> &
|
||||||
get_io_services() const;
|
io_services() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::unique_ptr<http2_impl> impl_;
|
std::unique_ptr<http2_impl> impl_;
|
||||||
|
|
Loading…
Reference in New Issue