|
SatCat5
|
Specialization of satcat5::log::ToCbor for UDP datagrams.
Definition at line 153 of file log_cbor.h.
#include <log_cbor.h>
Public Member Functions | |
| LogToCbor (satcat5::udp::Dispatch *udp, const satcat5::udp::Port &dstport) | |
| Constructor binds to a specific interface and port number. More... | |
| void | connect (const satcat5::udp::Addr &dstaddr, const satcat5::udp::Port &dstport) |
| Set the destination address. | |
| void | close () |
| Stop message forwarding. | |
| satcat5::ip::Addr | dstaddr () const |
| satcat5::eth::MacAddr | dstmac () const |
| satcat5::udp::Port | dstport () const |
| satcat5::eth::Dispatch * | eth () const |
| satcat5::net::Dispatch * | iface () const |
| satcat5::ip::Addr | gateway () const |
| satcat5::udp::Port | srcport () const |
| satcat5::udp::Dispatch * | udp () const |
| 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::udp::Address | m_addr |
| satcat5::net::Address *const | m_dst |
Private Attributes | |
| s8 | m_min_priority = satcat5::log::DEBUG |
| satcat5::log::EventHandler * | m_next |
| satcat5::udp::LogToCbor::LogToCbor | ( | satcat5::udp::Dispatch * | udp, |
| const satcat5::udp::Port & | dstport | ||
| ) |
Constructor binds to a specific interface and port number.
The default destination is the IPv4 broadcast address. To change this behavior, call connect.
Definition at line 149 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.