docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SteamNetConnectionInfo_t

    Describe the state of a connection.

    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 SteamNetConnectionInfo_t

    Fields

    m__pad1

    The m__pad1 field of SteamNetConnectionInfo_t.

    Declaration
    public ushort m__pad1
    Field Value
    Type Description
    ushort

    m_addrRemote

    Remote address. Might be all 0's if we don't know it, or if this is N/A. (E.g. Basically everything except direct UDP connection.)

    Declaration
    public SteamNetworkingIPAddr m_addrRemote
    Field Value
    Type Description
    SteamNetworkingIPAddr

    m_eEndReason

    Basic cause of the connection termination or problem. See ESteamNetConnectionEnd for the values used

    Declaration
    public int m_eEndReason
    Field Value
    Type Description
    int

    m_eState

    High level state of the connection

    Declaration
    public ESteamNetworkingConnectionState m_eState
    Field Value
    Type Description
    ESteamNetworkingConnectionState

    m_hListenSocket

    Handle to listen socket this was connected on, or k_HSteamListenSocket_Invalid if we initiated the connection

    Declaration
    public HSteamListenSocket m_hListenSocket
    Field Value
    Type Description
    HSteamListenSocket

    m_idPOPRelay

    What relay are we using to communicate with the remote host? (0 if not applicable.)

    Declaration
    public SteamNetworkingPOPID m_idPOPRelay
    Field Value
    Type Description
    SteamNetworkingPOPID

    m_idPOPRemote

    What data center is the remote host in? (0 if we don't know.)

    Declaration
    public SteamNetworkingPOPID m_idPOPRemote
    Field Value
    Type Description
    SteamNetworkingPOPID

    m_identityRemote

    Who is on the other end? Depending on the connection type and phase of the connection, we might not know

    Declaration
    public SteamNetworkingIdentity m_identityRemote
    Field Value
    Type Description
    SteamNetworkingIdentity

    m_nFlags

    Misc flags. Bitmask of k_nSteamNetworkConnectionInfoFlags_Xxxx

    Declaration
    public int m_nFlags
    Field Value
    Type Description
    int

    m_nUserData

    Arbitrary user data set by the local application code

    Declaration
    public long m_nUserData
    Field Value
    Type Description
    long

    reserved

    Internal stuff, room to change API easily

    Declaration
    public uint[] reserved
    Field Value
    Type Description
    uint[]

    Properties

    m_szConnectionDescription

    Debug description. This includes the internal connection ID, connection type (and peer information), and any name given to the connection by the app. This string is used in various internal logging messages. Note that the connection ID usually matches the HSteamNetConnection handle, but in certain cases with symmetric connections it might not.

    Declaration
    public string m_szConnectionDescription { get; set; }
    Property Value
    Type Description
    string

    m_szEndDebug

    Human-readable, but non-localized explanation for connection termination or problem. This is intended for debugging / diagnostic purposes only, not to display to users. It might have some details specific to the issue.

    Declaration
    public string m_szEndDebug { get; set; }
    Property Value
    Type Description
    string
    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)