SatCat5
satcat5::eth::SwitchLogHandler Class Referenceabstract

Detailed Description

Define the API for packet-logging callbacks from eth::SwitchCore.

This class is the parent for SwitchLogStats and SwitchLogWriter.

Definition at line 64 of file eth_switch.h.

#include <eth_switch.h>

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

Public Member Functions

virtual void log_packet (const satcat5::eth::SwitchLogMessage &msg)=0
 This method is called exactly once for each incoming packet. More...
 

Protected Member Functions

constexpr SwitchLogHandler ()
 Constructor is accessible only to children.
 

Private Attributes

satcat5::eth::SwitchLogHandlerm_next
 

Member Function Documentation

◆ log_packet()

virtual void satcat5::eth::SwitchLogHandler::log_packet ( const satcat5::eth::SwitchLogMessage msg)
pure virtual

This method is called exactly once for each incoming packet.

The child class MUST override this method.

Implemented in satcat5::eth::SwitchLogWriter, and satcat5::eth::SwitchLogStats.


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