7 #ifndef CTRL_DHCPV4_SRV_H 8 #define CTRL_DHCPV4_SRV_H 42 void init(
const std::string& config_file);
130 static void sessionReader(
void);
141 commandShutdownHandler(
const std::string& command,
154 commandLibReloadHandler(
const std::string& command,
167 commandConfigReloadHandler(
const std::string& command,
179 commandConfigGetHandler(
const std::string& command,
196 commandConfigWriteHandler(
const std::string& command,
210 commandConfigSetHandler(
const std::string& command,
224 commandConfigTestHandler(
const std::string& command,
235 commandDhcpDisableHandler(
const std::string& command,
245 commandDhcpEnableHandler(
const std::string& command,
259 commandVersionGetHandler(
const std::string& command,
271 commandBuildReportHandler(
const std::string& command,
288 commandLeasesReclaimHandler(
const std::string& command,
307 void reclaimExpiredLeases(
const size_t max_leases,
const uint16_t timeout,
308 const bool remove_lease,
309 const uint16_t max_unwarned_cycles);
319 void deleteExpiredReclaimedLeases(
const uint32_t secs);
void init(const std::string &config_file)
Initializes the server.
isc::data::ConstElementPtr loadConfigFile(const std::string &file_name)
Loads specific config file.
boost::shared_ptr< TimerMgr > TimerMgrPtr
Type definition of the shared pointer to TimerMgr.
isc::data::ConstElementPtr checkConfig(isc::data::ConstElementPtr new_config)
Configuration checker.
static isc::data::ConstElementPtr processConfig(isc::data::ConstElementPtr new_config)
Configuration processor.
The IOService class is a wrapper for the ASIO io_service class.
static isc::data::ConstElementPtr processCommand(const std::string &command, isc::data::ConstElementPtr args)
Command processor.
~ControlledDhcpv4Srv()
Destructor.
ControlledDhcpv4Srv(uint16_t port=DHCP4_SERVER_PORT)
Constructor.
void shutdown()
Initiates shutdown procedure for the whole DHCPv4 server.
boost::shared_ptr< const Element > ConstElementPtr
void cleanup()
Performs cleanup, immediately before termination.
Defines the logger used by the top-level component of kea-dhcp-ddns.
This file contains several functions and constants that are used for handling commands and responses ...
static ControlledDhcpv4Srv * getInstance()
Returns pointer to the sole instance of Dhcpv4Srv.
Controlled version of the DHCPv4 server.
boost::shared_ptr< ReconnectCtl > ReconnectCtlPtr
Pointer to an instance of ReconnectCtl.