File SolidSyslogPlusTcpDatagram.h¶
FileList > Interface > SolidSyslogPlusTcpDatagram.h
Go to the source code of this file
UDP transport over a FreeRTOS-Plus-TCP socket, for a UdpSender. More...
#include "ExternC.h"
Public Functions¶
| Type | Name |
|---|---|
| struct SolidSyslogDatagram * | SolidSyslogPlusTcpDatagram_Create (void) Create takes no config; an exhausted pool falls back to the shared NullDatagram, whose SendTo reports SENT so undeliverables are dropped rather than backing up the Store. |
| void | SolidSyslogPlusTcpDatagram_Destroy (struct SolidSyslogDatagram * base) Release the pool slot and close the socket. |
Detailed Description¶
SendTo wraps FreeRTOS_sendto (unconnected, destination per call) and reports SENT when the stack accepts the whole datagram, else FAILED. On an ARP-cache miss it first issues an ARP probe and yields once (~50 ms) for the reply, because FreeRTOS-Plus-TCP does not queue datagrams while ARP resolves — the cold-start packet would otherwise be dropped at the IP layer; if the reply is late the send is left to fail, since UDP is best-effort and retry belongs in the store-and-forward layer above. MaxPayload is the fixed IPv6-safe default.
Public Functions Documentation¶
function SolidSyslogPlusTcpDatagram_Create¶
Create takes no config; an exhausted pool falls back to the shared NullDatagram, whose SendTo reports SENT so undeliverables are dropped rather than backing up the Store.
function SolidSyslogPlusTcpDatagram_Destroy¶
Release the pool slot and close the socket.
The documentation for this class was generated from the following file Platform/PlusTcp/Interface/SolidSyslogPlusTcpDatagram.h