SatCat5
satcat5::net::ProtoEcho Class Reference

Detailed Description

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 20 of file net_echo.h.

#include <net_echo.h>

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

Protected Member Functions

void frame_rcvd (satcat5::io::LimitedRead &src) override
 Event handler to process incoming frames and respond.
 
 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.
 

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: