kea-custom-hooks
FeM custom hooks libraries for Kea DHCP
Public Member Functions | Static Public Attributes | List of all members
ArpwatchRPC Class Reference

An adapter to the RPC interface of ARPwatch. More...

#include <ArpwatchRPC.hpp>

Public Member Functions

 ArpwatchRPC (std::string_view rpc_endpoint)
 
 ArpwatchRPC (const ArpwatchRPC &)=delete
 
virtual ~ArpwatchRPC ()
 
virtual void push_seen_entry (const isc::dhcp::SubnetID &subnet_id, const isc::dhcp::HWAddr &mac, const isc::asiolink::IOAddress &ip4)
 RPC method callers. More...
 

Static Public Attributes

static constexpr const char * RPC_METHOD_PUSH_SEEN_ENTRY {"pushSeenEntry"}
 

Detailed Description

An adapter to the RPC interface of ARPwatch.

This class abstracts away the RPC calls which can be made against ARPwatch. It is reduced only to the calls which are actually needed by this project.

Definition at line 18 of file ArpwatchRPC.hpp.

Constructor & Destructor Documentation

◆ ArpwatchRPC() [1/2]

ArpwatchRPC::ArpwatchRPC ( std::string_view  rpc_endpoint)

Definition at line 18 of file ArpwatchRPC.cpp.

◆ ArpwatchRPC() [2/2]

ArpwatchRPC::ArpwatchRPC ( const ArpwatchRPC )
delete

◆ ~ArpwatchRPC()

ArpwatchRPC::~ArpwatchRPC ( )
virtual

Definition at line 23 of file ArpwatchRPC.cpp.

Member Function Documentation

◆ push_seen_entry()

void ArpwatchRPC::push_seen_entry ( const isc::dhcp::SubnetID &  subnet_id,
const isc::dhcp::HWAddr &  mac,
const isc::asiolink::IOAddress &  ip4 
)
virtual

RPC method callers.

The names of the method callers correspond to the respective RPC method name, but (if necessary) adjusted to match our function naming convention. Furthermore, parameter type conversion usually happens in the method caller so that it doesn't have to be done in outside code.

Definition at line 26 of file ArpwatchRPC.cpp.

Member Data Documentation

◆ RPC_METHOD_PUSH_SEEN_ENTRY

constexpr const char* ArpwatchRPC::RPC_METHOD_PUSH_SEEN_ENTRY {"pushSeenEntry"}
staticconstexpr

Definition at line 21 of file ArpwatchRPC.hpp.


The documentation for this class was generated from the following files: