|
SatCat5
|
Specialization of satcat5::log::ToCbor for raw-Ethernet frames.
Definition at line 114 of file log_cbor.h.
#include <log_cbor.h>
Public Member Functions | |
| LogToCbor (satcat5::eth::Dispatch *eth, const satcat5::eth::MacType &typ) | |
| Constructor binds to a specific interface and EtherType. More... | |
| void | connect (const satcat5::eth::MacAddr &addr, const satcat5::eth::MacType &type) |
| Set the destination address. | |
| void | close () |
| Stop message forwarding. | |
| void | set_min_priority (s8 priority) |
Protected Member Functions | |
| void | log_event (s8 priority, unsigned nbytes, const char *msg) override |
| Callback for each formatted Log message. More... | |
Protected Attributes | |
| satcat5::eth::Address | m_addr |
| satcat5::net::Address *const | m_dst |
Private Attributes | |
| s8 | m_min_priority = satcat5::log::DEBUG |
| satcat5::log::EventHandler * | m_next |
| satcat5::eth::LogToCbor::LogToCbor | ( | satcat5::eth::Dispatch * | eth, |
| const satcat5::eth::MacType & | typ | ||
| ) |
Constructor binds to a specific interface and EtherType.
The default destination is the broadcast address. To change this behavior, call connect.
Definition at line 131 of file log_cbor.cc.
|
overrideprotectedvirtualinherited |
Callback for each formatted Log message.
Child class must override this method.)
Implements satcat5::log::EventHandler.
Definition at line 96 of file log_cbor.cc.