Fast Connectors

Classes

class  senf::ppi::connector::FastPassiveInput< PacketType >
 Fast passive input connector. More...
 
class  senf::ppi::connector::FastActiveOutput< PacketType >
 Fast active output connector. More...
 

Detailed Description

Fast connectors are simplified form of the generic PPI connectors:

  • they do not support automatic queueing
  • they do not support throttling
  • no in-module routing (have to be initialized using noroute)
  • they do not support automatic packet type casting
  • callbacks are restricted to module member functions
  • only passive input and active output are supported

With these restrictions, fast connectors provide an almost zero overhead call path for simple packet forwarding needs.

To allow more flexible fast connector connections, the PassiveConnectorAdapter template is provided. This class converts between an arbitrary passive input and an arbitrary active output. If needed, it will perform automatic packet type casting.