DtlsEngine.getEffectiveMtu

size_t getEffectiveMtu(DatagramEndpoint peer)

Gets the current effective MTU for a peer.

If PLPMTUD is enabled and has completed for this peer, returns the discovered MTU. Otherwise returns the static MTU.

Parameters

peerThe peer's network address.

Returns

The effective MTU in bytes.