File SolidSyslogWinsockDatagram.h¶
FileList > Interface > SolidSyslogWinsockDatagram.h
Go to the source code of this file
UDP transport over a Winsock socket, for a UdpSender. More...
#include "SolidSyslogDatagram.h"
Public Functions¶
| Type | Name |
|---|---|
| EXTERN_C_BEGIN struct SolidSyslogDatagram * | SolidSyslogWinsockDatagram_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 | SolidSyslogWinsockDatagram_Destroy (struct SolidSyslogDatagram * base) Release the pool slot and close the socket. |
Detailed Description¶
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¶
function 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.
function SolidSyslogWinsockDatagram_Destroy¶
Release the pool slot and close the socket.
The documentation for this class was generated from the following file Platform/Windows/Interface/SolidSyslogWinsockDatagram.h