kea-custom-hooks
FeM custom hooks libraries for Kea DHCP
|
High-level handler for ARPwatch requests. More...
#include <ArpwatchRequestHandler.hpp>
Classes | |
struct | RpcMethodName |
Public Member Functions | |
ArpwatchRequestHandler (HiredisAdapter &redis) | |
ArpwatchRequestHandler (const ArpwatchRequestHandler &)=delete | |
ArpwatchRequestHandler & | operator= (const ArpwatchRequestHandler &)=delete |
ArpwatchRequestHandler (ArpwatchRequestHandler &&)=delete | |
ArpwatchRequestHandler & | operator= (ArpwatchRequestHandler &&)=delete |
~ArpwatchRequestHandler ()=default | |
void | register_method_handlers (XmlRpcServer &rpc_server) |
Register this instance's method handlers in the aai::XmlRpcServer . More... | |
RPC method handlers | |
These functions are the actual handlers for RPC method. They take the arguments from the RPC server and perform the requested action on the local lease storage. All these functions are named similar to the XML-RPC method names as required by the ARPwatch specification.
| |
std::optional< std::string > | resolve_ip_to_mac (std::string_view ip) |
High-level handler for ARPwatch requests.
This class is the bridge between the local lease storage and the XML-RPC interface, taking parsed XML-RPC requests, processing them using the local lease storage and returning the result to the XML-RPC interface.
Definition at line 20 of file ArpwatchRequestHandler.hpp.
|
inlineexplicit |
Definition at line 29 of file ArpwatchRequestHandler.hpp.
|
delete |
|
delete |
|
default |
|
delete |
|
delete |
void aai::ArpwatchRequestHandler::register_method_handlers | ( | XmlRpcServer & | rpc_server | ) |
Register this instance's method handlers in the aai::XmlRpcServer
.
Definition at line 35 of file ArpwatchRequestHandler.cpp.
std::optional< std::string > aai::ArpwatchRequestHandler::resolve_ip_to_mac | ( | std::string_view | ip | ) |
Definition at line 42 of file ArpwatchRequestHandler.cpp.