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:
Tatsuhiro Tsujikawa 2015-12-25 21:06:25 +09:00
parent 486dba8d8a
commit dd4d549dc1
8 changed files with 11 additions and 11 deletions

View File

@ -93,7 +93,7 @@ boost::asio::io_service &io_service_pool::get_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_;
}

View File

@ -72,7 +72,7 @@ public:
/// Get access to all io_service objects.
const std::vector<std::shared_ptr<boost::asio::io_service>> &
get_io_services() const;
io_services() const;
private:
/// The pool of io_services.

View File

@ -180,8 +180,8 @@ void server::stop() { io_service_pool_.stop(); }
void server::join() { io_service_pool_.join(); }
const std::vector<std::shared_ptr<boost::asio::io_service>> &
server::get_io_services() const {
return io_service_pool_.get_io_services();
server::io_services() const {
return io_service_pool_.io_services();
}
} // namespace server

View File

@ -77,7 +77,7 @@ public:
/// Get access to all io_service objects.
const std::vector<std::shared_ptr<boost::asio::io_service>> &
get_io_services() const;
io_services() const;
private:
/// Initiate an asynchronous accept operation.

View File

@ -86,8 +86,8 @@ void http2::stop() { impl_->stop(); }
void http2::join() { return impl_->join(); }
const std::vector<std::shared_ptr<boost::asio::io_service>> &
http2::get_io_services() const {
return impl_->get_io_services();
http2::io_services() const {
return impl_->io_services();
}
} // namespace server

View File

@ -73,8 +73,8 @@ void http2_impl::stop() { return server_->stop(); }
void http2_impl::join() { return server_->join(); }
const std::vector<std::shared_ptr<boost::asio::io_service>> &
http2_impl::get_io_services() const {
return server_->get_io_services();
http2_impl::io_services() const {
return server_->io_services();
}
} // namespace server

View File

@ -53,7 +53,7 @@ public:
void stop();
void join();
const std::vector<std::shared_ptr<boost::asio::io_service>> &
get_io_services() const;
io_services() const;
private:
std::unique_ptr<server> server_;

View File

@ -212,7 +212,7 @@ public:
// Get access to the io_service objects.
const std::vector<std::shared_ptr<boost::asio::io_service>> &
get_io_services() const;
io_services() const;
private:
std::unique_ptr<http2_impl> impl_;