7#ifndef AVALANCHE_SCEN_H
8#define AVALANCHE_SCEN_H
14#include <unordered_map>
27 return static_cast<std::size_t
>(t);
Avalanche Scenario class.
AvalancheScen(CommandOptions &options, BasePerfSocket &socket)
Default and the only constructor of AvalancheScen.
std::unordered_map< ExchangeType, std::unordered_map< uint32_t, int >, EnumClassHash > retransmissions_
A map xchg type -> (a map of trans id -> retransmissions count.
int total_resent_
Total number of resent packets.
int run() override
brief\ Run performance test.
int resendPackets(ExchangeType xchg_type)
\brief Resend packets.
std::unordered_map< ExchangeType, std::unordered_map< uint32_t, boost::posix_time::ptime >, EnumClassHash > start_times_
A map xchg type -> (a map of trans id -> time of sending first packet.
Socket wrapper structure.
ExchangeType
DHCP packet exchange types.
Defines the logger used by the top-level component of kea-lfc.
std::size_t operator()(T t) const