eve.core.windows.config

Windows event loop configuration.

This module defines configuration types for the Windows event loop, including EventLoopConfig and WindowsSocketBackend. It is the Windows equivalent of eve.core.posix.loop for shared config types.

Types 2

Backend selection for Windows socket I/O.

Controls how sockets are polled for readiness on Windows.

WSAPOLLUse WSAPoll for socket readiness polling. This is the legacy fallback option.
IOCP_OVERLAPPEDUse IOCP overlapped I/O for completion notification. Better performance, unified model with pipes/files. This is the default backend.

Configuration for EventLoop.create.

Fields
size_t watcherCapacityNumber of watcher slots preallocated at loop creation.
size_t eventCapacityNumber of native events buffered per backend poll operation.
size_t dnsCapacityNumber of asynchronous DNS resolution slots preallocated.
EventLoopLimits limitsResource limits configuration.
MetricsSink metricsMetrics sink for event-loop observability.
bool delegate(LimitKind kind, size_t current, size_t limit) @safe nothrow onLimitApproachingCalled when a limit is about to be hit (if `LimitAction.callback` is set).
void delegate(LimitKind kind) @safe nothrow onLimitExceededCalled when a limit is exceeded and the action is `reject`.
WindowsSocketBackend windowsSocketBackendWindows socket backend selection.
void delegate(Token token, Exception error) @safe nothrow onCallbackErrorCalled when a watcher callback throws an exception.