NativeDtlsEngine.getEffectiveMtu

size_t getEffectiveMtu(DatagramEndpoint peer) @safe

Returns the effective MTU for a peer.

Reports the PLPMTUD-confirmed MTU when discovery is enabled and a value has been confirmed; otherwise the configured base MTU.

Parameters

peerThe peer's network address.

Returns

The effective MTU in bytes.