17 #ifndef HH_SENF_Ext_NetEmu_Modules_PacketDropper_ 18 #define HH_SENF_Ext_NetEmu_Modules_PacketDropper_ 1 23 #include <boost/random.hpp> 44 typedef boost::mt19937 RandomEngine;
45 typedef boost::bernoulli_distribution<> RandomDistribution;
46 typedef boost::variate_generator<RandomEngine, RandomDistribution> RandomGenerator;
48 RandomEngine randomEngine_;
49 boost::scoped_ptr<RandomDistribution> randomDistribution_;
50 boost::scoped_ptr<RandomGenerator> randomGenerator_;
53 void onRequest_forwardAll();
54 void onRequest_discardAll();
55 void onRequest_random();
PacketDropper(double rate)
#define SENF_PPI_MODULE(name)
ppi::connector::ActiveOutput output
ppi::connector::PassiveInput input