NativeDtlsEngine.pruneIdlePeers
size_t pruneIdlePeers(Duration idleTimeout) @safePrune idle peers.
Removes all peers that have been idle longer than the specified timeout. The eviction callback is invoked for each removed peer.
Parameters
idleTimeout | The idle threshold duration. |
Returns
The number of peers pruned.