SatCat5
satcat5::eth::ProtoEcho Class Reference

Detailed Description

Thin wrapper for echo of ethernet frames through eth::Dispatch.

Note: Always use different request/reply EtherTypes to avoid the potential for infinite reply loops.

The Echo protocol can be attached to any Dispatch object. It copies each received frame back to the original sender. Variants are provided for raw-Ethernet and UDP networking. Generic version requires a wrapper to be used.

Definition at line 44 of file net_echo.h.

#include <net_echo.h>

Inheritance diagram for satcat5::eth::ProtoEcho:
[legend]
Collaboration diagram for satcat5::eth::ProtoEcho:
[legend]

Public Member Functions

 ProtoEcho (satcat5::eth::Dispatch *iface, satcat5::eth::MacType type_req, satcat5::eth::MacType type_ack)
 

Protected Member Functions

void frame_rcvd (satcat5::io::LimitedRead &src) override
 Event handler to process incoming frames and respond.
 

Protected Attributes

satcat5::net::Dispatch *const m_iface
 Registered iface.
 
satcat5::net::Type const m_replytype
 Type for replies.
 
satcat5::net::Type m_filter
 Incoming packet filter.
 

Private Attributes

satcat5::net::Protocolm_next
 Linked list of Protocols.
 

The documentation for this class was generated from the following files: