Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISteamworksNetworking

Hierarchy

  • ISteamworksNetworking

Index

Methods

acceptP2PSessionWithUser

  • acceptP2PSessionWithUser(steamIdRemote: string): boolean
  • Parameters

    • steamIdRemote: string

    Returns boolean

closeP2PSessionWithUser

  • closeP2PSessionWithUser(steamIdRemote: string): boolean
  • Parameters

    • steamIdRemote: string

    Returns boolean

getP2PSessionState

getRelayNetworkStatus

initRelayNetworkAccess

  • initRelayNetworkAccess(): undefined
  • Returns undefined

isP2PPacketAvailable

  • isP2PPacketAvailable(): number
  • Returns number

readP2PPacket

  • readP2PPacket(length: number): { data: Uint8Array; steamIdRemote: string } | undefined
  • readP2PPacket(length: number, data: Uint8Array): string | undefined
  • Parameters

    • length: number

    Returns { data: Uint8Array; steamIdRemote: string } | undefined

  • Parameters

    • length: number
    • data: Uint8Array

    Returns string | undefined

sendP2PPacket

  • sendP2PPacket(steamIdRemote: string, data: Uint8Array): boolean
  • Parameters

    • steamIdRemote: string
    • data: Uint8Array

    Returns boolean

setP2PSessionConnectFailCallback

  • setP2PSessionConnectFailCallback(callback: (steamIdRemote: string, errorCode: number) => void): void
  • Parameters

    • callback: (steamIdRemote: string, errorCode: number) => void
        • (steamIdRemote: string, errorCode: number): void
        • Parameters

          • steamIdRemote: string
          • errorCode: number

          Returns void

    Returns void

setP2PSessionRequestCallback

  • setP2PSessionRequestCallback(callback: (steamIdRemote: string) => void): void
  • Parameters

    • callback: (steamIdRemote: string) => void
        • (steamIdRemote: string): void
        • Parameters

          • steamIdRemote: string

          Returns void

    Returns void

Generated using TypeDoc