senf::ppi::connector::PassiveInput< PacketType > Class Template Reference

Connector passively receiving packets. More...

#include <senf/PPI/Connectors.hh>

Inheritance diagram for senf::ppi::connector::PassiveInput< PacketType >:
Inheritance graph
[legend]

List of all members.


Detailed Description

template<class PacketType = Packet>
class senf::ppi::connector::PassiveInput< PacketType >

Connector passively receiving packets.
Template Parameters:
PacketType  Type of packet to read. Defaults to senf::Packet
The PassiveInput connector template receives packets sent to it from a connected module. This class is completely implemented via it's base-class, GenericPassiveInput, the only difference is that read packets are returned as PacketType instead of generic senf::Packet references.
See also:
GenericPassiveInput
senf::ppi::connector

Definition at line 648 of file Connectors.hh.


Public Member Functions

PacketType  operator() ()
  Read packet.
PacketType  read ()
  Alias for operator().

Member Function Documentation

template<class PacketType = Packet>
PacketType senf::ppi::connector::PassiveInput< PacketType >::
operator() ()

Read packet.

Exceptions:
std::bad_cast  if the connector receives a Packet which is not of type PacketType.
Returns:
newly read packet reference.

Reimplemented from senf::ppi::connector::InputConnector.

template<class PacketType = Packet>
PacketType senf::ppi::connector::PassiveInput< PacketType >::
read ()

Alias for operator().

Reimplemented from senf::ppi::connector::InputConnector.


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