Emulated interface base-class for transmit capable interfaces. More...
#include <senf/Ext/NetEmu/EmulatedInterface.hh>
Public Member Functions | |
void | delay (ClockService::clock_type delay) |
set the delay of the sender More... | |
ClockService::clock_type | delay () const |
get the sender delay More... | |
Protected Member Functions | |
EmulatedTransmitter () | |
void | init () |
void | initEmulatedTransmitter () |
Initialize transmitter. More... | |
void | deinitEmulatedTransmitter () |
Shut down transmitter. More... | |
unsigned | mtuEmulatedTransmitter () const |
Get emulated MTU. More... | |
void | mtuEmulatedTransmitter (unsigned v) |
Set emulated MTU. More... | |
virtual Packet::size_type | v_emulatedPayloadSize (Packet packet) |
Called to get size of payload. More... | |
Protected Attributes | |
ppi::connector::PassiveInputJack | transmitterJack |
Emulated interface base-class for transmit capable interfaces.
Definition at line 221 of file EmulatedInterface.hh.
|
protected |
Definition at line 368 of file EmulatedInterface.cc.
|
protected |
Shut down transmitter.
Must be called by the interface implementations v_deinitEmulationInterface()
member.
void senf::emu::EmulatedTransmitter::delay | ( | ClockService::clock_type | delay | ) |
set the delay of the sender
ClockService::clock_type senf::emu::EmulatedTransmitter::delay | ( | ) | const |
get the sender delay
|
protected |
Definition at line 375 of file EmulatedInterface.cc.
|
protected |
Initialize transmitter.
Must be called by the interface implementations v_initEmulationInterface()
member.
Definition at line 394 of file EmulatedInterface.cc.
|
protected |
Get emulated MTU.
Must be called by the interface implementations v_mtu()
member.
|
protected |
Set emulated MTU.
Must be called by the interface implementations v_mtu(unsigned)
member.
|
protectedvirtual |
Called to get size of payload.
This member is called to find out the size of the payload of an emulated packet without any emulation specific headers. The default implementation will search for the first EthernetHeader found and use the size of the next packet thus found.
Definition at line 403 of file EmulatedInterface.cc.
|
protected |
Definition at line 230 of file EmulatedInterface.hh.