docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SteamNetworkingFakeIPResult_t

    Callback struct used to notify when a connection has changed state A struct used to describe a "fake IP" we have been assigned to use as an identifier. This callback is posted when ISteamNetworkingSoockets::BeginAsyncRequestFakeIP completes. See also ISteamNetworkingSockets::GetFakeIP

    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(1223)]
    public struct SteamNetworkingFakeIPResult_t

    Fields

    k_iCallback

    The identifier Steam dispatches this callback under.

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

    m_eResult

    Status/result of the allocation request. Possible failure values are:

    • k_EResultBusy - you called GetFakeIP but the request has not completed.
    • k_EResultInvalidParam - you called GetFakeIP with an invalid port index
    • k_EResultLimitExceeded - You asked for too many ports, or made an additional request after one had already succeeded
    • k_EResultNoMatch - GetFakeIP was called, but no request has been made Note that, with the exception of k_EResultBusy (if you are polling), it is highly recommended to treat all failures as fatal.
    Declaration
    public EResult m_eResult
    Field Value
    Type Description
    EResult

    m_identity

    Local identity of the ISteamNetworkingSockets object that made this request and is assigned the IP. This is needed in the callback in the case where there are multiple ISteamNetworkingSockets objects. (E.g. one for the user, and another for the local gameserver).

    Declaration
    public SteamNetworkingIdentity m_identity
    Field Value
    Type Description
    SteamNetworkingIdentity

    m_unIP

    Fake IPv4 IP address that we have been assigned. NOTE: this IP address is not exclusively ours! Steam tries to avoid sharing IP addresses, but this may not always be possible. The IP address may be currently in use by another host, but with different port(s). The exact same IP:port address may have been used previously. Steam tries to avoid reusing ports until they have not been in use for some time, but this may not always be possible.

    Declaration
    public uint m_unIP
    Field Value
    Type Description
    uint

    m_unPorts

    The m_unPorts field of SteamNetworkingFakeIPResult_t.

    Declaration
    public ushort[] m_unPorts
    Field Value
    Type Description
    ushort[]
    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)