docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RelayServerData

    Connection information about the relay server.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Networking.Transport.Relay
    Assembly: solution.dll
    Syntax
    public struct RelayServerData

    Constructors

    Name Description
    RelayServerData(string, ushort, byte[], byte[], byte[], byte[], bool)

    Create a new Relay server data structure.

    RelayServerData(string, ushort, byte[], byte[], byte[], byte[], bool, bool)

    Create a new Relay server data structure.

    RelayServerData(ref NetworkEndpoint, ushort, ref RelayAllocationId, ref RelayConnectionData, ref RelayConnectionData, ref RelayHMACKey, bool)
    RelayServerData(ref NetworkEndpoint, ushort, ref RelayAllocationId, ref RelayConnectionData, ref RelayConnectionData, ref RelayHMACKey, bool, bool)

    Create a new Relay server data structure (low-level constructor).

    Fields

    Name Description
    AllocationId

    Allocation ID for the server connection.

    ConnectionData

    Connection data of the allocation.

    Endpoint

    Endpoint the relay server can be reached on.

    HMACKey

    HMAC key used to authentify the connection.

    HostConnectionData

    Connection data of the host.

    IsSecure

    Whether the connection is using a secure protocol or not.

    IsWebSocket

    Whether the connection is using the WebSocket protocol.

    Nonce

    Nonce that will be used in the connection handshake.

    Methods

    Name Description
    IncrementNonce()

    Increment the nonce and recompute the HMAC.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023