virtual dhcp::Pkt6Ptr receive6(uint32_t timeout_sec, uint32_t timeout_usec)=0
See description of this method in PerfSocket class below.
boost::shared_ptr< Iface > IfacePtr
Type definition for the pointer to an Iface object.
virtual dhcp::Pkt6Ptr receive6(uint32_t timeout_sec, uint32_t timeout_usec) override
Receive DHCPv6 packet from interface.
virtual dhcp::IfacePtr getIface() override
Get interface from IfaceMgr.
int openSocket(CommandOptions &options) const
Open socket to communicate with DHCP server.
virtual ~PerfSocket()
Destructor of the socket wrapper class.
Socket wrapper structure.
virtual dhcp::IfacePtr getIface()=0
See description of this method in PerfSocket class below.
boost::shared_ptr< Pkt6 > Pkt6Ptr
A pointer to Pkt6 packet.
boost::shared_ptr< Pkt4 > Pkt4Ptr
A pointer to Pkt4 object.
virtual dhcp::Pkt4Ptr receive4(uint32_t timeout_sec, uint32_t timeout_usec)=0
See description of this method in PerfSocket class below.
uint16_t ifindex_
Interface index.
virtual dhcp::Pkt4Ptr receive4(uint32_t timeout_sec, uint32_t timeout_usec) override
Receive DHCPv4 packet from interface.
Defines the logger used by the top-level component of kea-dhcp-ddns.
void initSocketData()
Initialize socket data.
virtual ~BasePerfSocket()=default
Destructor of the socket wrapper class.
A wrapper interface for the ASIO library.
virtual bool send(const dhcp::Pkt4Ptr &pkt) override
Send DHCPv4 packet through interface.
SocketInfo(const isc::asiolink::IOAddress &addr, const uint16_t port, const int sockfd, const int fallbackfd=-1)
SocketInfo constructor.
PerfSocket(CommandOptions &options)
Constructor of socket wrapper class.
Socket wrapper structure.
BasePerfSocket()
Default constructor of BasePerfSocket.
Holds information about socket.
virtual bool send(const dhcp::Pkt4Ptr &pkt)=0
See description of this method in PerfSocket class below.