Skip to content

Windows

Platform/Windows/ wraps the Win32 and Winsock APIs for MSVC targets (Winsock documentation).

Fills the Resolver, Datagram, Stream, File, Mutex and AtomicCounter roles, plus the clock / hostname / process-id / sleep callbacks.

What it ships

Class Role
SolidSyslogWinsockResolver resolver
SolidSyslogWinsockAddress address
SolidSyslogWinsockDatagram UDP sender
SolidSyslogWinsockTcpStream TCP stream (non-blocking + select, bounded connect)
SolidSyslogWindowsFile file
SolidSyslogWindowsMutex mutex (CRITICAL_SECTION)
SolidSyslogWindowsAtomicCounter atomic counter (Interlocked)
SolidSyslogWindowsClock clock
SolidSyslogWindowsHostname hostname
SolidSyslogWindowsProcessId process-id
SolidSyslogWindowsSleep sleep
SolidSyslogWindowsSysUpTime uptime (GetTickCount64)

Requirements

The MSVC toolchain and Winsock — call WSAStartup once at process init before creating a sender.