17 #ifndef HH_SENF_Ext_NetEmu_Modules_PacketDelayer_ 18 #define HH_SENF_Ext_NetEmu_Modules_PacketDelayer_ 1 50 template <
class ThrottlingDisc>
57 std::unique_ptr<std::mt19937> rndEngine_;
58 std::unique_ptr<std::uniform_int_distribution<ClockService::int64_type> > rndDist_;
59 std::queue<ClockService::clock_type> queue_;
62 void enableDelay(
bool flag);
63 void onRequest_noDelay();
64 void onRequest_delay();
66 void throttleNotification();
67 void unthrottleNotification();
config::time_type clock_type
ppi::connector::PassiveInput input
#define SENF_PPI_MODULE(name)
ClockService::clock_type variation() const
ClockService::clock_type delay() const
ppi::connector::ActiveOutput output
void throttlingDisc(ThrottlingDisc const &disc)