docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SteamNetworkingMessagesSessionFailed_t

    Posted when we fail to establish a connection, or we detect that communications have been disrupted it an unusual way. There is no notification when a peer proactively closes the session. ("Closed by peer" is not a concept of UDP-style communications, and SteamNetworkingMessages is primarily intended to make porting UDP code easy.) Remember: callbacks are asynchronous. See notes on SendMessageToUser, and k_nSteamNetworkingSend_AutoRestartBrokenSession in particular. Also, if a session times out due to inactivity, no callbacks will be posted. The only way to detect that this is happening is that querying the session state may return none, connecting, and findingroute again.

    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]
    [CallbackIdentity(1252)]
    public struct SteamNetworkingMessagesSessionFailed_t

    Fields

    k_iCallback

    The identifier Steam dispatches this callback under.

    Declaration
    public const int k_iCallback = 1252
    Field Value
    Type Description
    int

    m_info

    Detailed info about the session that failed. SteamNetConnectionInfo_t::m_identityRemote indicates who this session was with.

    Declaration
    public SteamNetConnectionInfo_t m_info
    Field Value
    Type Description
    SteamNetConnectionInfo_t
    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)