Emulated wireless receiver base-class. More...
#include <senf/Ext/NetEmu/EmulatedWirelessInterface.hh>
Public Types | |
typedef detail::InterfaceAccess< EmulatedWirelessInterface > | emui |
typedef detail::InterfaceAccess< WirelessInterface > | basei |
Protected Member Functions | |
EmulatedWirelessReceiver () | |
void | init () |
virtual bool | v_emulatedWirelessQuality (Packet packet, annotations::Quality &quality) |
Overload to define wireless characteristics. More... | |
Protected Member Functions inherited from senf::emu::EmulatedReceiver | |
EmulatedReceiver () | |
void | init () |
void | initEmulatedReceiver () |
Initialize receiver. More... | |
void | deinitEmulatedReceiver () |
Shut down receiver. More... | |
bool | promiscEmulatedReceiver () const |
Get receiver promiscuous state. More... | |
void | promiscEmulatedReceiver (bool v) |
Set receiver promiscuous state. More... | |
void | annotationModeEmulatedReceiver (bool a) |
Set receiver annotationMode state. More... | |
bool | annotationModeEmulatedReceiver () const |
Get receiver annotationMode state. More... | |
void | mcAddEmulatedReceiver (MACAddress const &address) |
Add multicast MAC address. More... | |
void | mcDropEmulatedReceiver (MACAddress const &address) |
Drops multicast MAC address. More... | |
Protected Attributes | |
ppi::connector::ActiveOutputJack | receiverJack |
Protected Attributes inherited from senf::emu::EmulatedReceiver | |
ppi::connector::ActiveOutputJack | receiverJack |
Additional Inherited Members | |
Public Member Functions inherited from senf::emu::EmulatedReceiver | |
void | startStatistics (ClockService::clock_type pollInterval) |
Start statistics generation or change interval. More... | |
void | maxDelay (ClockService::clock_type maxDelay) |
Set maximum allowed packet delay. More... | |
ClockService::clock_type | maxDelay () const |
Get current maxDelay() value. More... | |
unsigned | delayedPackets () const |
Number of packets with delay > maxDelay() More... | |
ClockService::clock_type | maxPacketDelay () const |
Maximum packet delay encountered. More... | |
unsigned | droppedPackets () const |
Number of dropped packets. More... | |
double | lossRate () const |
void | lossRate (double lossRate) |
Emulated wireless receiver base-class.
Definition at line 357 of file EmulatedWirelessInterface.hh.
typedef detail::InterfaceAccess<WirelessInterface> senf::emu::EmulatedWirelessReceiver::basei |
Definition at line 364 of file EmulatedWirelessInterface.hh.
typedef detail::InterfaceAccess<EmulatedWirelessInterface> senf::emu::EmulatedWirelessReceiver::emui |
Definition at line 363 of file EmulatedWirelessInterface.hh.
|
protected |
|
protected |
Definition at line 569 of file EmulatedWirelessInterface.cc.
|
protectedvirtual |
Overload to define wireless characteristics.
This member is called for every received packet to calculate the wireless characteristics: The emulated reception quality and whether the packet should be dropped.
[in] | packet | the packet received |
[out] | quality | output quality |
true
, if packet is ok, false
if it should be dropped. Definition at line 587 of file EmulatedWirelessInterface.cc.
|
protected |
Definition at line 367 of file EmulatedWirelessInterface.hh.