7#ifndef PERFDHCP_RECEIVER_H
8#define PERFDHCP_RECEIVER_H
37 std::atomic_flag run_flag_;
40 std::unique_ptr<std::thread> recv_thread_;
43 std::queue<dhcp::PktPtr> pkt_queue_;
46 std::mutex pkt_queue_mutex_;
51 bool single_threaded_;
63 single_threaded_(single_threaded),
64 ip_version_(ip_version) {
94 void receivePackets();
Socket wrapper structure.
A receiving DHCP packets class.
void start()
Start a receiving thread in multi-thread mode.
Receiver(BasePerfSocket &socket, bool single_threaded, uint8_t ip_version)
Receiver constructor.
void stop()
Stop a receiving thread in multi-thread mode.
dhcp::PktPtr getPkt()
Get DHCP packet.
boost::shared_ptr< isc::dhcp::Pkt > PktPtr
A pointer to either Pkt4 or Pkt6 packet.
Defines the logger used by the top-level component of kea-lfc.