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

P2PSessionState_t

Struct
Namespace: SwiftlyS2.Shared.SteamAPI · Assembly: SwiftlyS2.CS2.dll
public struct P2PSessionState_t

connection state to a specified user, returned by GetP2PSessionState() this is under-the-hood info about what's going on with a SendP2PPacket(), shouldn't be needed except for debuggin

View source

Fields

m_bConnecting

true if we're currently trying to establish a connection

public byte m_bConnecting
Field Value

m_bConnectionActive

true if we've got an active open connection

public byte m_bConnectionActive
Field Value

m_bUsingRelay

true if it's going through a relay server (TURN)

public byte m_bUsingRelay
Field Value

m_eP2PSessionError

last error recorded (see enum above)

public byte m_eP2PSessionError
Field Value

m_nBytesQueuedForSend

public int m_nBytesQueuedForSend
Field Value

m_nPacketsQueuedForSend

public int m_nPacketsQueuedForSend
Field Value

m_nRemoteIP

potential IP:Port of remote host. Could be TURN server.

public uint m_nRemoteIP
Field Value

m_nRemotePort

Only exists for compatibility with older authentication api's

public ushort m_nRemotePort
Field Value