Class SteamP2PLimits
- Namespace
- SteamNetworkLib.Core
- Assembly
- SteamNetworkLib.dll
Steam P2P packet limits for the legacy ISteamNetworking SendP2PPacket API.
public static class SteamP2PLimits
- Inheritance
-
SteamP2PLimits
- Inherited Members
Fields
ReliableMaxPacketSize
Maximum packet size for k_EP2PSendReliable and k_EP2PSendReliableWithBuffering. Steam fragments and reassembles reliable messages up to this size.
public const int ReliableMaxPacketSize = 1048576
Field Value
UnreliableMaxPacketSize
Maximum packet size for k_EP2PSendUnreliable and k_EP2PSendUnreliableNoDelay. Steam documents this as the typical MTU-sized packet limit.
public const int UnreliableMaxPacketSize = 1200
Field Value
Methods
GetMaxPacketSize(EP2PSend)
Gets Steam's maximum packet size for the selected send type.
public static int GetMaxPacketSize(EP2PSend sendType)
Parameters
sendTypeEP2PSendThe Steam P2P send type.
Returns
- int
The maximum packet size, in bytes.
IsReliable(EP2PSend)
Gets whether the selected send type uses Steam's reliable delivery path.
public static bool IsReliable(EP2PSend sendType)
Parameters
sendTypeEP2PSendThe Steam P2P send type.
Returns
- bool
True for reliable send types; otherwise, false.