NativeDtlsEngine.pruneIdlePeers

size_t pruneIdlePeers(Duration idleTimeout) @safe

Prune idle peers.

Removes all peers that have been idle longer than the specified timeout. The eviction callback is invoked for each removed peer.

Parameters

idleTimeoutThe idle threshold duration.

Returns

The number of peers pruned.