|
SatCat5
|
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>
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::SwitchLogHandler * | m_next |
|
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.