8 #include <satcat5/udp_core.h>
36 const char* label =
nullptr);
54 const char*
const m_label;
Limited read of next N bytes.
A net::Protocol is the counterpart to net::Dispatch that handles a particular data stream,...
Timer objects are polled after a fixed delay or at a regular interval.
Implementation of "net::Address" for UDP Dispatch.
Dispatcher sorts incoming UDP messages by port index.
Send and receive keep-alive messages.
void timer_event() override
Child class MUST override this method.
void send_now(const char *msg)
Immediately send a keep-alive, with an optional message.
void connect(const satcat5::ip::Addr &dstaddr, const satcat5::eth::VlanTag &vtag=satcat5::eth::VTAG_NONE)
Connect to a specific destination address.
void frame_rcvd(satcat5::io::LimitedRead &src) override
Dispatch calls frame_rcvd(...) for each incoming frame with with a matching net::Type value.
KeepAlive(satcat5::udp::Dispatch *iface, satcat5::udp::Port port, const char *label=nullptr)
Bind this object to a network interface and UDP port.
Header contents for an 802.1Q Virtual-LAN tag.
IPv4 address is a 32-bit unsigned integer.
UDP and TCP ports are both 16-bit unsigned integers.