X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPPI%2FConnectors.hh;h=bbe8eb593858b74a9ff7ebc9390eb58ad70d0d01;hb=69c137120ce26b83cf37b125c5c54e1eb61f39a3;hp=ff44b48afd30a9abee004bfc22a5dcf4df220dba;hpb=b733a5d9ca5fa34a65c7ebbe3cf8922f37213671;p=senf.git diff --git a/senf/PPI/Connectors.hh b/senf/PPI/Connectors.hh index ff44b48..bbe8eb5 100644 --- a/senf/PPI/Connectors.hh +++ b/senf/PPI/Connectors.hh @@ -399,7 +399,7 @@ namespace connector { typedef Queue::size_type size_type; ///< Unsigned type for counting queue elements - Packet operator()(); ///< Get a packet + Packet const & operator()(); ///< Get a packet /**< This member is the primary method to access received data. On passive connectors, this operator will just dequeue a packet from the packet queue. If the @@ -408,14 +408,10 @@ namespace connector { request cannot be fulfilled an in-valid Packet is returned. */ - Packet read(); ///< Alias for operator()() + Packet const & read(); ///< Alias for operator()() OutputConnector & peer() const; - queue_iterator begin() const; ///< Access queue begin (head) - queue_iterator end() const; ///< Access queue past-the-end (tail) - Packet peek() const; ///< Return head element from the queue - size_type queueSize() const; ///< Return number of elements in the queue bool empty() const; ///< Return queueSize() == 0 @@ -434,6 +430,8 @@ namespace connector { OutputConnector * peer_; Queue queue_; + Packet const * fastPacket_; + Packet slowPacket_; friend class OutputConnector; };