SatCat5
satcat5::eth::LogToChat Class Referencefinal

Detailed Description

Service for forwarding Log events as text messages.

This class implements the log::EventHandler API, and forwards each generated Log message to the designated ChatProto object.

See also
satcat5::eth::ChatProto

Definition at line 85 of file eth_chat.h.

#include <eth_chat.h>

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

Public Member Functions

 LogToChat (satcat5::eth::ChatProto *dst, const satcat5::eth::MacAddr &addr=satcat5::eth::MACADDR_BROADCAST)
 Bind to the designated ChatProto object. More...
 
void log_event (s8 priority, unsigned nbytes, const char *msg) override
 Event handler for the log::EventHandler API.
 

Private Attributes

satcat5::eth::ChatProto *const m_chat
 
const satcat5::eth::MacAddr m_addr
 
satcat5::log::EventHandlerm_next
 

Constructor & Destructor Documentation

◆ LogToChat()

LogToChat::LogToChat ( satcat5::eth::ChatProto dst,
const satcat5::eth::MacAddr addr = satcat5::eth::MACADDR_BROADCAST 
)
explicit

Bind to the designated ChatProto object.

Optionally set destination-MAC address, defaulting to broadcast.

Definition at line 124 of file eth_chat.cc.


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