11 #include <satcat5/ethernet.h>
12 #include <satcat5/udp_core.h>
Implemention of "net::Dispatch" for Ethernet frames.
Thin wrapper for echo of ethernet frames through eth::Dispatch.
Limited read of next N bytes.
The "Dispatch" is a generic interface that knows how to read a designated protocol layer and sort inc...
The Echo protocol can be attached to any Dispatch object.
satcat5::net::Type const m_replytype
Type for replies.
ProtoEcho(satcat5::net::Dispatch *iface, const satcat5::net::Type &type_req, const satcat5::net::Type &type_ack)
Only children can safely access constructor/destructor.
~ProtoEcho() SATCAT5_OPTIONAL_DTOR
Only children can safely access constructor/destructor.
void frame_rcvd(satcat5::io::LimitedRead &src) override
Event handler to process incoming frames and respond.
satcat5::net::Dispatch *const m_iface
Registered iface.
A net::Protocol is the counterpart to net::Dispatch that handles a particular data stream,...
Dispatcher sorts incoming UDP messages by port index.
Thin wrapper for echo of UDP/IP frames through udp::Dispatch.
EtherType field (uint16) is used a protocol-ID [1536..65535].
UDP and TCP ports are both 16-bit unsigned integers.
Multipurpose filter for matching fields in network packets.