File SolidSyslogUdpPayload.h¶
FileList > Core > Interface > SolidSyslogUdpPayload.h
UDP payload sizing helpers: the usable payload for a given MTU and the UTF-8-safe trim used to fit a message into a datagram without splitting a codepoint.
#include "SolidSyslogExternC.h"#include <stdbool.h>#include <stddef.h>#include <stdint.h>
Public Types Documentation¶
enum @5¶
Largest UDP payload guaranteed to fit an unfragmented IPv6 datagram: IPv6 minimum MTU 1280 - 40-byte IPv6 header - 8-byte UDP header (RFC 8200 §5).
Used as the last-resort MaxPayload when the OS cannot report a path MTU.
Public Functions Documentation¶
SolidSyslogUdpPayload_FromMtu¶
Usable UDP payload for an mtu , subtracting the IP header (40 for IPv6, 20 for IPv4) and the 8-byte UDP header.
SolidSyslogUdpPayload_TrimToCodepointBoundary¶
The documentation for this class was generated from the following file Core/Interface/SolidSyslogUdpPayload.h