Combination of ActiveConnector and OutputConnector. More...
#include <senf/PPI/Connectors.hh>
Public Member Functions | |
GenericPassiveInput & | peer () const |
bool | boolean_test () const |
true if peer() is ! throttled() More... | |
void | connect (GenericPassiveInput &target) |
Internal: Use senf::ppi::connect() instead. More... | |
Public Member Functions inherited from senf::ppi::connector::ActiveConnector | |
~ActiveConnector () | |
template<class Handler > | |
void | onThrottle (Handler handler) |
Register throttle notification handler. More... | |
void | onThrottle () |
Clear throttle notification handler. More... | |
template<class Handler > | |
void | onUnthrottle (Handler handler) |
Register unthrottle notification handler. More... | |
void | onUnthrottle () |
Clear unthrottle notification handler. More... | |
bool | throttled () const |
true , if peer() is throttled More... | |
PassiveConnector & | peer () const |
Public Member Functions inherited from senf::ppi::connector::Connector | |
Connector & | peer () const |
Get peer connected to this connector. More... | |
module::Module & | module () const |
Get this connectors containing module. More... | |
bool | connected () const |
true , if connector connected, false otherwise More... | |
void | disconnect () |
Disconnect connector from peer. More... | |
console::DirectoryNode & | consoleDir () const |
void | tracingState (TraceState state) |
TraceState | tracingState () const |
Public Member Functions inherited from senf::ppi::connector::OutputConnector | |
void | operator() (Packet const &p) |
Send out a packet. More... | |
void | write (Packet const &p) |
Alias for operator()(Packet p) More... | |
InputConnector & | peer () const |
Public Member Functions inherited from senf::comparable_safe_bool< class > | |
operator bool_type () const | |
bool | operator! () const |
Protected Member Functions | |
GenericActiveOutput () | |
virtual void | v_disconnected () |
virtual void | v_connected () |
Protected Member Functions inherited from senf::ppi::connector::ActiveConnector | |
ActiveConnector () | |
Protected Member Functions inherited from senf::ppi::connector::Connector | |
Connector () | |
virtual | ~Connector () |
void | connect (Connector &target) |
void | trace (Packet const &p, char const *label) |
void | throttleTrace (char const *label, char const *type) |
void | unregisterConnector () |
Protected Member Functions inherited from senf::ppi::connector::OutputConnector | |
OutputConnector () | |
Protected Member Functions inherited from senf::comparable_safe_bool< class > | |
~comparable_safe_bool () | |
Protected Member Functions inherited from senf::safe_bool_base | |
void | this_type_does_not_support_comparisons () const |
safe_bool_base () | |
safe_bool_base (const safe_bool_base &) | |
safe_bool_base & | operator= (const safe_bool_base &) |
~safe_bool_base () | |
Additional Inherited Members | |
Public Types inherited from senf::ppi::connector::Connector | |
enum | TraceState { NO_TRACING, TRACE_IDS, TRACE_CONTENTS } |
Static Public Member Functions inherited from senf::ppi::connector::Connector | |
static void | staticTracingState (TraceState state) |
static void | tracingFilter (std::string const &traceFilter) |
Protected Types inherited from senf::safe_bool_base | |
typedef void(safe_bool_base::* | bool_type) () const |
Combination of ActiveConnector and OutputConnector.
Definition at line 563 of file Connectors.hh.
|
protected |
bool senf::ppi::connector::GenericActiveOutput::boolean_test | ( | ) | const |
true
if peer() is ! throttled()
void senf::ppi::connector::GenericActiveOutput::connect | ( | GenericPassiveInput & | target | ) |
Internal: Use senf::ppi::connect() instead.
GenericPassiveInput& senf::ppi::connector::GenericActiveOutput::peer | ( | ) | const |
|
protectedvirtual |
Reimplemented from senf::ppi::connector::ActiveConnector.
Definition at line 577 of file Connectors.cc.
|
protectedvirtual |
Reimplemented from senf::ppi::connector::ActiveConnector.
Definition at line 570 of file Connectors.cc.