docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SteamDatagramRelayAuthTicket

    A parsed Steam Datagram Relay auth ticket, filled in by ReceivedRelayAuthTicket(IntPtr, int, out SteamDatagramRelayAuthTicket) and FindRelayAuthTicketForServer(ref SteamNetworkingIdentity, int, out SteamDatagramRelayAuthTicket). Treat it as read-only: tickets are generated and signed on the game's backend.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Steamworks.Interop
    Assembly: Unity.Steamworks.Interop.dll
    Syntax
    [Serializable]
    public struct SteamDatagramRelayAuthTicket

    Fields

    k_nMaxExtraFields

    Maximum number of extra backend-analytics fields a ticket can carry.

    Declaration
    public const int k_nMaxExtraFields = 16
    Field Value
    Type Description
    int

    m_identityAuthorizedClient

    Identity of the client that was authorized.

    Declaration
    public SteamNetworkingIdentity m_identityAuthorizedClient
    Field Value
    Type Description
    SteamNetworkingIdentity

    m_identityGameserver

    Identity of the game server the ticket grants access to.

    Declaration
    public SteamNetworkingIdentity m_identityGameserver
    Field Value
    Type Description
    SteamNetworkingIdentity

    m_nAppID

    The app id the client runs, even when the game server uses a different one.

    Declaration
    public uint m_nAppID
    Field Value
    Type Description
    uint

    m_nRestrictToVirtualPort

    Virtual port the ticket is restricted to, or -1 for any.

    Declaration
    public int m_nRestrictToVirtualPort
    Field Value
    Type Description
    int

    m_routing

    Where the game server listens for relayed traffic; always blank on the client.

    Declaration
    public SteamDatagramHostedAddress m_routing
    Field Value
    Type Description
    SteamDatagramHostedAddress

    m_rtimeTicketExpiry

    When the ticket expires.

    Declaration
    public RTime32 m_rtimeTicketExpiry
    Field Value
    Type Description
    RTime32

    m_unPublicIP

    When non-zero, the authorized client may only send from this public IP.

    Declaration
    public uint m_unPublicIP
    Field Value
    Type Description
    uint

    Methods

    Clear()

    Resets to the empty state: every field cleared, and m_nRestrictToVirtualPort set to -1 (any port).

    Declaration
    public void Clear()
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)