File SolidSyslogUdpSender.h¶
FileList > Core > Interface > SolidSyslogUdpSender.h
#include "SolidSyslogEndpoint.h"#include "SolidSyslogExternC.h"
Classes¶
| Type | Name |
|---|---|
| struct | SolidSyslogUdpSenderConfig Wiring for SolidSyslogUdpSender_Create, a sender that resolves a host and transmits each framed message as one datagram. |
Detailed Description¶
A Sender that transmits each message as a single UDP datagram over the injected Datagram, resolving the endpoint and opening the socket lazily on the first Send and re-resolving when the endpoint version changes.
A datagram the path reports as oversize is retried once, trimmed to the datagram's MaxPayload on a UTF-8 codepoint boundary rather than dropped. A record that cannot be sent even trimmed (trims to nothing, or is refused for size again) is discarded so Service does not loop on it, and the loss is reported as SOLIDSYSLOG_CAT_SENDER_RECORDS_LOST, once per run. A NULL send buffer is reported and rejected without touching delivery health. Repeated delivery failures and the recovery after them are reported once each via SolidSyslog_Error (DELIVERY_FAILED / DELIVERY_RESTORED). Destroy disconnects but does not free the injected Resolver, Datagram, or Address.
Public Functions Documentation¶
SolidSyslogUdpSender_Create¶
Create a UDP sender from config .
struct SolidSyslogSender * SolidSyslogUdpSender_Create (
const struct SolidSyslogUdpSenderConfig * config
)
Never returns NULL: a NULL or invalid config, or an exhausted sender pool, reports via SolidSyslog_Error and returns the shared NullSender (Send drops on the floor), so the result is safe to wire without a null-check.
SolidSyslogUdpSender_Destroy¶
Release the sender's pool slot, disconnecting first.
Does not free the injected Resolver, Datagram, or Address; the caller owns those.
The documentation for this class was generated from the following file Core/Interface/SolidSyslogUdpSender.h