Skip to content

lwIP (Raw API) platform

«interface»SolidSyslogDatagramLwipRawDatagramLwipRaw

File SolidSyslogLwipRawDatagram.h

FileList > Interface > SolidSyslogLwipRawDatagram.h

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

Classes

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

Detailed Description

UDP transport over the lwIP Raw API, for a UdpSender.

What the datagram does through its vtable is the substance:

  • Open makes a udp_new pcb; Close removes it. Both run under the SolidSyslogLwipRaw_Marshal hop, since they touch lwIP core state.
  • SendTo runs the whole send - pbuf alloc, udp_sendto, free - in a single marshal hop, so a NO_SYS=0 integrator pays one tcpip-thread context switch per Send rather than three. The pbuf is PBUF_REF: lwIP points at the caller's buffer instead of copying it, safe because the buffer outlives the synchronous hop. Reports SENT on udp_sendto success, else FAILED. Cache-miss recovery is left to lwIP's ARP_QUEUEING.
  • MaxPayload answers the limit the config states, or the SOLIDSYSLOG_UDP_IPV4_PAYLOAD_LIMIT tunable: the stack exposes no path MTU.

Public Functions Documentation

SolidSyslogLwipRawDatagram_Create

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

struct SolidSyslogDatagram * SolidSyslogLwipRawDatagram_Create (
    const struct SolidSyslogLwipRawDatagramConfig * config
) 

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


SolidSyslogLwipRawDatagram_Destroy

Release the pool slot; removes the udp pcb.

void SolidSyslogLwipRawDatagram_Destroy (
    struct SolidSyslogDatagram * base
) 



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