X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FConnectors.hh;h=e42bab9172e744f2ea7c6fdc1956f1b2d7a5f759;hb=e84dd6c52a07fc9e283cbd72c7616f3523920387;hp=f2e94aaad24600815d48b09b90efcee9780de28c;hpb=04f43d565123141b6fd6f22a0909d00cf1d20f1a;p=senf.git diff --git a/PPI/Connectors.hh b/PPI/Connectors.hh index f2e94aa..e42bab9 100644 --- a/PPI/Connectors.hh +++ b/PPI/Connectors.hh @@ -255,6 +255,7 @@ namespace connector { typedef Queue::const_iterator queue_iterator; ///< Iterator type of the embedded queue typedef Queue::size_type size_type; ///< Unsigned type for counting queue elements + Packet operator()(); ///< Get a packet /**< This member is the primary method to access received data. On passive connectors, this operator will just @@ -265,6 +266,8 @@ namespace connector { logic error in the module implementation and an exception is raised. */ + Packet read(); ///< Alias for \ref operator()() + OutputConnector & peer() const; queue_iterator begin() const; ///< Access queue begin (head) @@ -299,7 +302,9 @@ namespace connector { : public virtual Connector { public: - void operator()(Packet p); ///< Send out a packet + void operator()(Packet p); ///< Send out a packet + + void write(Packet p); ///< Alias for \ref operator()() InputConnector & peer() const;