17 #ifndef HH_SENF_PPI_QueueSocketSourceSink_ 18 #define HH_SENF_PPI_QueueSocketSourceSink_ 1 48 typedef std::function<bool (senf::Packet const & pkt, std::uint32_t usage)>
REDFilterCallback;
77 Handle handle()
const;
78 void handle(Handle
const & handle);
80 unsigned maxBurst()
const;
81 void maxBurst(
unsigned burst);
89 void setREDFilterCallback(REDFilterCallback
const & cb);
91 std::pair<unsigned,unsigned> dropped();
96 REDFilterCallback redFilterCallback_;
109 template <
class Connector=connector::PassiveInput<> >
126 Handle handle()
const;
127 void handle(Handle
const & handle);
129 std::tuple<unsigned,unsigned,unsigned> dropped();
138 void setREDFilterCallback(REDFilterCallback
const & cb);
148 REDFilterCallback redFilterCallback_;
Reader for module::ActiveSocketSource (read from socket packet queue)
Connectors public header.
QueueingSocketSink public header.
QueueReadPolicy::Buffer const * value
connector::PassiveInput< EthernetPacket > input
connector::ActiveOutput< EthernetPacket > output
std::ostream & operator<<(std::ostream &os, QueueBufferAnnotation const &annotation)
senf::ClientSocketHandle< senf::MakeSocketPolicy< senf::QueueReadPolicy, senf::DatagramFramingPolicy >::policy > Handle
#define SENF_PPI_MODULE(name)
Define PPI Module.
FileHandle based I/O read/write event.
std::function< bool(senf::Packet const &pkt, std::uint32_t usage)> REDFilterCallback
QueueReadPolicy::Buffer const * operator->() const
senf::ClientSocketHandle< senf::MakeSocketPolicy< senf::QueueWritePolicy, senf::DatagramFramingPolicy, senf::ConnectedCommunicationPolicy >::policy > Handle
ConcretePacket< DataPacketType > DataPacket