Skip to content

FreeRTOS-Plus-TCP platform

«interface»SolidSyslogDatagramPlusTcpDatagramPlusTcp

File SolidSyslogPlusTcpDatagram.h

FileList > Interface > SolidSyslogPlusTcpDatagram.h

  • #include "SolidSyslogExternC.h"
  • #include "SolidSyslogUdpPayloadLimitFunction.h"

Classes

Type Name
struct SolidSyslogPlusTcpDatagramConfig
States what only the integrator can know: the IPv4 payload the path carries, which this stack cannot discover.

Detailed Description

UDP transport over a FreeRTOS-Plus-TCP socket, for a UdpSender.

SendTo wraps FreeRTOS_sendto (unconnected, destination per call) and reports SENT when the stack accepts the whole datagram, else FAILED. The stack drops a datagram whose next hop it is still resolving, so before each send the datagram confirms the next hop's link address is in the ARP cache, as the Datagram contract requires: on a miss it sends one ARP request and checks every tick for up to SOLIDSYSLOG_DATAGRAM_RESOLVE_WAIT_MS, and a next hop still unresolved fails the send and is reported. MaxPayload answers the limit the config states, or the SOLIDSYSLOG_UDP_IPV4_PAYLOAD_LIMIT tunable: the stack exposes no path MTU.

Public Functions Documentation

SolidSyslogPlusTcpDatagram_Create

Draw a datagram from the pool; config may be NULL.

struct SolidSyslogDatagram * SolidSyslogPlusTcpDatagram_Create (
    const struct SolidSyslogPlusTcpDatagramConfig * config
) 

An exhausted pool falls back to the shared NullDatagram, whose SendTo reports SENT so undeliverables are dropped rather than backing up the Store.


SolidSyslogPlusTcpDatagram_Destroy

Release the pool slot and close the socket.

void SolidSyslogPlusTcpDatagram_Destroy (
    struct SolidSyslogDatagram * base
) 



The documentation for this class was generated from the following file Platform/PlusTcp/Interface/SolidSyslogPlusTcpDatagram.h