24 auto it = std::find(io_services_.begin(), io_services_.end(), io_service);
25 if (it == io_services_.end()) {
26 io_services_.push_back(io_service);
32 auto it = std::find(io_services_.begin(), io_services_.end(), io_service);
33 if (it != io_services_.end()) {
34 io_services_.erase(it);
40 for (
auto& io_service : io_services_) {
Class which handles events on IOService objects.
static IOServiceMgr & instance()
Access the IOServiceMgr singleton instance.
void registerIOService(IOServicePtr io_service)
Register IOService.
void pollIOServices()
Poll IOService objects.
void unregisterIOService(IOServicePtr io_service)
Unregister IOService.
A wrapper interface for the ASIO library.
boost::shared_ptr< IOService > IOServicePtr
Defines a smart pointer to an IOService instance.
Defines the logger used by the top-level component of kea-lfc.