swiftlys2/docs/api/releases/features/ai/
API Reference › SteamAPI

EP2PSessionError

Enum
Namespace: SwiftlyS2.Shared.SteamAPI · Assembly: SwiftlyS2.CS2.dll
public enum EP2PSessionError

list of possible errors returned by SendP2PPacket() API these will be posted in the P2PSessionConnectFail_t callback

View source
k_EP2PSessionErrorDestinationNotLoggedIn_DELETED
3
k_EP2PSessionErrorMax
5
k_EP2PSessionErrorNoRightsToApp

local user doesn't own the app that is running

2
k_EP2PSessionErrorNone
0
k_EP2PSessionErrorNotRunningApp_DELETED

corporate firewalls can also block this (NAT traversal is not firewall traversal) make sure that UDP ports 3478, 4379, and 4380 are open in an outbound direction The following error codes were removed and will never be sent. For privacy reasons, there is no reply if the user is offline or playing another game.

1
k_EP2PSessionErrorTimeout

target isn't responding, perhaps not calling AcceptP2PSessionWithUser()

4