44 impl->startService(io_service, network_state, HAServerType::DHCPv4);
46 }
catch (
const std::exception& ex) {
59 impl->buffer4Receive(handle);
61 }
catch (
const std::exception& ex) {
75 impl->leases4Committed(handle);
77 }
catch (
const std::exception& ex) {
95 impl->startService(io_service, network_state, HAServerType::DHCPv6);
97 }
catch (
const std::exception& ex) {
110 impl->buffer6Receive(handle);
112 }
catch (
const std::exception& ex) {
126 impl->leases6Committed(handle);
128 }
catch (
const std::exception& ex) {
142 impl->commandProcessed(handle);
144 }
catch (
const std::exception& ex) {
156 impl->heartbeatHandler(handle);
158 }
catch (
const std::exception& ex) {
170 impl->synchronizeHandler(handle);
172 }
catch (
const std::exception& ex) {
183 impl->scopesHandler(handle);
185 }
catch (
const std::exception& ex) {
196 impl->continueHandler(handle);
198 }
catch (
const std::exception& ex) {
218 impl = boost::make_shared<HAImpl>();
219 impl->configure(config);
226 }
catch (
const std::exception& ex) {
int buffer4_receive(CalloutHandle &handle)
buffer4_receive callout implementation.
int continue_command(CalloutHandle &handle)
ha-continue command handler implementation.
#define LOG_INFO(LOGGER, MESSAGE)
Macro to conveniently test info output and log it.
boost::shared_ptr< HAImpl > HAImplPtr
Pointer to the High Availability hooks library implementation.
int load(LibraryHandle &handle)
This function is called when the library is loaded.
int unload()
This function is called when the library is unloaded.
#define LOG_ERROR(LOGGER, MESSAGE)
Macro to conveniently test error output and log it.
boost::shared_ptr< IOService > IOServicePtr
Defines a smart pointer to an IOService instance.
const int CONTROL_RESULT_ERROR
Status code indicating a general failure.
void registerCommandCallout(const std::string &command_name, CalloutPtr callout)
Register control command handler.
int scopes_command(CalloutHandle &handle)
ha-scopes command handler implementation.
int buffer6_receive(CalloutHandle &handle)
buffer6_receive callout implementation.
int heartbeat_command(CalloutHandle &handle)
Heartbeat command handler implementation.
int leases4_committed(CalloutHandle &handle)
leases4_committed callout implementation.
Per-packet callout handle.
int dhcp6_srv_configured(CalloutHandle &handle)
dhcp6_srv_configured callout implementation.
boost::shared_ptr< const Element > ConstElementPtr
int dhcp4_srv_configured(CalloutHandle &handle)
dhcp4_srv_configured callout implementation.
Defines the logger used by the top-level component of kea-dhcp-ddns.
void getArgument(const std::string &name, T &value) const
Get argument.
This file contains several functions and constants that are used for handling commands and responses ...
int leases6_committed(CalloutHandle &handle)
leases6_committed callout implementation.
isc::data::ConstElementPtr getParameter(const std::string &name)
Returns configuration parameter for the library.
boost::shared_ptr< NetworkState > NetworkStatePtr
Pointer to the NetworkState object.
isc::log::Logger ha_logger("ha-hooks")
int command_processed(CalloutHandle &handle)
comand_processed callout implementation.
int sync_command(CalloutHandle &handle)
ha-sync command handler implementation.