SatCat5
satcat5::udp::ProtoEcho Class Reference

Detailed Description

Thin wrapper for echo of UDP/IP frames through udp::Dispatch.

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

#include <net_echo.h>

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

Public Member Functions

 ProtoEcho (satcat5::udp::Dispatch *iface, satcat5::udp::Port port=satcat5::udp::PORT_ECHO)
 

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: