Click or drag to resize

LiteNetManagerExtraPacketSizeForLayer Property

Gets the additional size in bytes required by the active PacketLayerBase.

Namespace: LiteNetLib
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public int ExtraPacketSizeForLayer { get; }

Property Value

Int32
Remarks
This value is used by NetManager to calculate the available MTU for user data.
If a packet layer is active (e.g., for encryption or CRC), this returns the overhead added to every packet. Returns 0 if no packet layer is assigned.
See Also