// CommandMgr uses IO service to run asynchronous socket operations.
CommandMgr::instance().setIOService(getIOService());
+ // LeaseMgr uses IO service to run asynchronous timers.
+ LeaseMgr::setIOService(getIOService());
+
+ // HosrMgr uses IO service to run asynchronous timers.
+ HostMgr::setIOService(getIOService());
+
// These are the commands always supported by the DHCPv4 server.
// Please keep the list in alphabetic order.
CommandMgr::instance().registerCommand("build-report",
CommandMgr::instance().deregisterCommand("status-get");
CommandMgr::instance().deregisterCommand("version-get");
+ // TimerMgr uses IO service to run asynchronous timers.
+ TimerMgr::instance()->setIOService(IOServicePtr());
+
+ // CommandMgr uses IO service to run asynchronous socket operations.
+ CommandMgr::instance().setIOService(IOServicePtr());
+
+ // LeaseMgr uses IO service to run asynchronous timers.
+ LeaseMgr::setIOService(IOServicePtr());
+
+ // HosrMgr uses IO service to run asynchronous timers.
+ HostMgr::setIOService(IOServicePtr());
} catch (...) {
// Don't want to throw exceptions from the destructor. The server
// is shutting down anyway.
// CommandMgr uses IO service to run asynchronous socket operations.
CommandMgr::instance().setIOService(getIOService());
+ // LeaseMgr uses IO service to run asynchronous timers.
+ LeaseMgr::setIOService(getIOService());
+
+ // HosrMgr uses IO service to run asynchronous timers.
+ HostMgr::setIOService(getIOService());
+
// These are the commands always supported by the DHCPv6 server.
// Please keep the list in alphabetic order.
CommandMgr::instance().registerCommand("build-report",
CommandMgr::instance().deregisterCommand("status-get");
CommandMgr::instance().deregisterCommand("version-get");
+ // TimerMgr uses IO service to run asynchronous timers.
+ TimerMgr::instance()->setIOService(IOServicePtr());
+
+ // CommandMgr uses IO service to run asynchronous socket operations.
+ CommandMgr::instance().setIOService(IOServicePtr());
+
+ // LeaseMgr uses IO service to run asynchronous timers.
+ LeaseMgr::setIOService(IOServicePtr());
+
+ // HosrMgr uses IO service to run asynchronous timers.
+ HostMgr::setIOService(IOServicePtr());
} catch (...) {
// Don't want to throw exceptions from the destructor. The server
// is shutting down anyway.
io_service_ = io_service;
}
+ /// @brief Returns pointer to the IO service.
+ isc::asiolink::IOServicePtr& getIOService() {
+ return (io_service_);
+ }
+
private:
/// @brief Indicates if backends are running in the mode in which IP
io_service_ = io_service;
}
+ /// @brief Returns pointer to the IO service.
+ isc::asiolink::IOServicePtr& getIOService() {
+ return (io_service_);
+ }
+
private:
/// The IOService object, used for all ASIO operations.
static isc::asiolink::IOServicePtr io_service_;