applyKeepAlive

private fnvoid applyKeepAlive(SOCKET sock, const ref TcpConnectionConfig config) @trusted nothrow

Enable TCP keepalive with configured intervals using WSAIoctl.

Uses the Windows-specific SIO_KEEPALIVE_VALS ioctl which sets keepalive parameters in a single call.

Parameters

sockSocket to modify.
configConnection config with keepalive settings.