docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SteamDatagramHostedAddress

    Network-routable identifier for a service hosted behind the Steam Datagram Relay. The blob is deliberately opaque: the relays know how to route it, and clients should not inspect its contents.

    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 SteamDatagramHostedAddress

    Fields

    m_cbSize

    Number of bytes of m_data that are meaningful.

    Declaration
    public int m_cbSize
    Field Value
    Type Description
    int

    m_data

    Opaque routing blob.

    Declaration
    public byte[] m_data
    Field Value
    Type Description
    byte[]

    Methods

    Clear()

    Resets to the empty state.

    Declaration
    public void Clear()

    GetPopID()

    Parses the data center (POP) id out of the routing blob.

    Declaration
    public SteamNetworkingPOPID GetPopID()
    Returns
    Type Description
    SteamNetworkingPOPID

    The POP id the address routes to, or 0 when the blob has none.

    SetDevAddress(uint, ushort, SteamNetworkingPOPID)

    Writes a plaintext IP:port routing blob, intended for development only. In production, obtain the address from GetHostedDedicatedServerAddress(out SteamDatagramHostedAddress).

    Declaration
    public void SetDevAddress(uint nIP, ushort nPort, SteamNetworkingPOPID popid = default)
    Parameters
    Type Name Description
    uint nIP

    The IPv4 address, in host byte order.

    ushort nPort

    The port, in host byte order.

    SteamNetworkingPOPID popid

    The data center id to report, or default for none.

    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)