NativeDtlsEngine.setMaxPeers

void setMaxPeers(size_t limit) @safe pure nothrow @nogc

Set the maximum number of peers.

When this limit is reached, new connections will be rejected or existing peers will be evicted based on LRU policy.

Parameters

limitMaximum number of peers.