senf::ppi::module::debug::PassiveSource Class Reference

Debug packet source with passive output. More...

#include <senf/PPI/DebugModules.hh>

Inheritance diagram for senf::ppi::module::debug::PassiveSource:

Public Types

typedef Queue::size_type size_type
 

Public Member Functions

 PassiveSource ()
 
void throttle ()
 Throttle output connector. More...
 
void unthrottle ()
 Unthrottle output connector. More...
 
void submit (Packet const &packet)
 Enqueue packet. More...
 
bool empty ()
 true if queue is empty More...
 
size_type size ()
 Number of packets in queue. More...
 
- Public Member Functions inherited from senf::ppi::module::Module
virtual ~Module ()
 

Public Attributes

connector::PassiveOutput output
 

Additional Inherited Members

- Protected Member Functions inherited from senf::ppi::module::Module
 Module ()
 
Route< connector::InputConnector, connector::OutputConnector > & route (connector::InputConnector &input, connector::OutputConnector &output)
 Define flow information. More...
 
Route< connector::InputConnector, EventDescriptor > & route (connector::InputConnector &input, EventDescriptor &output)
 Define flow information. More...
 
Route< EventDescriptor, connector::OutputConnector > & route (EventDescriptor &input, connector::OutputConnector &output)
 Define flow information. More...
 
void noroute (connector::Connector &connector)
 Define terminal connectors. More...
 
template<class Target >
void registerEvent (EventDescriptor &descriptor, Target target)
 Register an external event. More...
 
ClockService::clock_type const & time () const
 Time-stamp of the currently processing event. More...
 
ClockService::clock_type const & now () const
 Current time of the currently processing event. More...
 
console::DirectoryNodesysConsoleDir () const
 
void destroy ()
 

Detailed Description

Debug packet source with passive output.

This module provides a queue of packets for reading by the network. Each submit() call adds a packet to the queue which will be sent into the network when requested. The output is automatically throttled when the queue becomes empty.

Definition at line 90 of file DebugModules.hh.

Member Typedef Documentation

◆ size_type

Definition at line 98 of file DebugModules.hh.

Constructor & Destructor Documentation

◆ PassiveSource()

senf::ppi::module::debug::PassiveSource::PassiveSource ( )

Member Function Documentation

◆ empty()

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

true if queue is empty

◆ size()

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

Number of packets in queue.

◆ submit()

void senf::ppi::module::debug::PassiveSource::submit ( Packet const &  packet)

Enqueue packet.

◆ throttle()

void senf::ppi::module::debug::PassiveSource::throttle ( )

Throttle output connector.

◆ unthrottle()

void senf::ppi::module::debug::PassiveSource::unthrottle ( )

Unthrottle output connector.

Member Data Documentation

◆ output

connector::PassiveOutput senf::ppi::module::debug::PassiveSource::output

Definition at line 100 of file DebugModules.hh.


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