docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RelayServerData

    Used by the Relay Protocol to describe how to connect to the Relay Service.

    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(ref NetworkEndPoint, ushort, RelayAllocationId, string, string, string, bool)

    Initializes a new instance of the RelayServerData class

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

    Initializes a new instance of the RelayServerData class

    Fields

    Name Description
    AllocationId

    The unique identifier of the client on the Relay Server.

    ConnectionData

    The data that describes the client presence on the Relay Server.

    Endpoint

    The endpoint of the Relay Server.

    HMAC

    The computed HMAC.

    HMACKey

    The HMAC key for the connection.

    HostConnectionData

    The connection data of the host client on the Relay Server.

    IsSecure

    A byte that identifies the connection as secured.

    Nonce

    The Nonce value used to stablish the connection with the Relay Server.

    Methods

    Name Description
    ComputeNewNonce()

    Computes the new nonce, this must be called one time!

    In This Article
    Back to top
    Copyright © 2023 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)