14 bool Dispatch::bound(
const Type& type)
const
Limited read of next N bytes.
Abstract API for reading byte-streams and packets.
The "Dispatch" is a generic interface that knows how to read a designated protocol layer and sort inc...
satcat5::util::List< satcat5::net::Protocol > m_list
Linked list of Protocol objects.
bool deliver(const satcat5::net::Type &type, satcat5::io::Readable *src, unsigned len)
Deliver current message by calling Protocol::frame_rcvd(...).
A net::Protocol is the counterpart to net::Dispatch that handles a particular data stream,...
virtual void frame_rcvd(satcat5::io::LimitedRead &src)=0
Dispatch calls frame_rcvd(...) for each incoming frame with with a matching net::Type value.
satcat5::net::Type m_filter
Incoming packet filter.
T * next(const T *item) const
Fetch pointer to the next item.
Generic network Dispatch API.
Generic network Protocol API.
Generic numeric "Type" for use with net::Protocol.
Multipurpose filter for matching fields in network packets.
bool match(const Type &other) const
Check if this Type matches other.