Skip to content

Windows platform

«interface»SolidSyslogDatagramWinsockDatagramWindows

File SolidSyslogWinsockDatagram.h

FileList > Interface > SolidSyslogWinsockDatagram.h

  • #include "SolidSyslogDatagram.h"

Detailed Description

UDP transport over a Winsock socket, for a UdpSender.

The datagram connect()s to the destination on its first SendTo (connected UDP) and turns on path-MTU discovery (IP_MTU_DISCOVER = IP_PMTUDISC_DO). SendTo then reports SENT, OVERSIZE (the datagram exceeds the path MTU, WSAEMSGSIZE), or FAILED. MaxPayload returns the IPv6-safe default until connected, then tracks the discovered path MTU (IP_MTU).

The caller must invoke WSAStartup before use and WSACleanup on shutdown; the library does not manage the Winsock lifecycle.

Public Functions Documentation

SolidSyslogWinsockDatagram_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.

struct SolidSyslogDatagram * SolidSyslogWinsockDatagram_Create (
    void
) 


SolidSyslogWinsockDatagram_Destroy

Release the pool slot and close the socket.

void SolidSyslogWinsockDatagram_Destroy (
    struct SolidSyslogDatagram * base
) 



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