senf::ppi::module::debug::ActiveFeederSource Class Reference

Active, queue-based packet source. More...

#include <senf/PPI/DebugModules.hh>

Public Types

typedef PassiveSource::size_type size_type
 

Public Member Functions

 ActiveFeederSource ()
 
void submit (Packet packet)
 enqueue packet More...
 
bool empty ()
 true, if queue is empty More...
 
size_type size ()
 number of packets in the queue More...
 

Public Attributes

connector::ActiveOutputoutput
 

Detailed Description

Active, queue-based packet source.

The ActiveFeederSource contains a packet queue containing the packets to be processed. These packets are actively fed into the network when it is run with senf::ppi::run() until it is empty, when senf::ppi::run() will return.

Note
senf::ppi::run will return as soon as no events are active. If want you want is to Process a set of packets placed into the ActiveFeederSource queue you must make sure, that eventually all events in the module are disabled by throttling or other activities. Otherwise, senf::ppi::run() will not return.

ActiveFeederSource is not a module but a collection of two modules: a PassiveSource and an ActiveFeeder.

Definition at line 198 of file DebugModules.hh.

Member Typedef Documentation

◆ size_type

Constructor & Destructor Documentation

◆ ActiveFeederSource()

senf::ppi::module::debug::ActiveFeederSource::ActiveFeederSource ( )

Member Function Documentation

◆ empty()

bool senf::ppi::module::debug::ActiveFeederSource::empty ( )

true, if queue is empty

◆ size()

size_type senf::ppi::module::debug::ActiveFeederSource::size ( )

number of packets in the queue

◆ submit()

void senf::ppi::module::debug::ActiveFeederSource::submit ( Packet  packet)

enqueue packet

Member Data Documentation

◆ output

connector::ActiveOutput& senf::ppi::module::debug::ActiveFeederSource::output

Definition at line 207 of file DebugModules.hh.


The documentation for this class was generated from the following file: