docs.unity3d.com
    Show / Hide Table of Contents

    Class RelayServerEndpoint

    The endpoint connection details of a Relay server.

    Inheritance
    Object
    RelayServerEndpoint
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Services.Relay.Models
    Syntax
    [Preserve]
    public class RelayServerEndpoint

    Constructors

    RelayServerEndpoint(String, RelayServerEndpoint.NetworkOptions, Boolean, Boolean, String, Int32)

    The endpoint connection details of a Relay server.

    Declaration
    [Preserve]
    public RelayServerEndpoint(string connectionType, RelayServerEndpoint.NetworkOptions network, bool reliable, bool secure, string host, int port)
    Parameters
    Type Name Description
    String connectionType

    Canonical connection type: - udp: Use for plain UDP connections. - dtls: Use for secured UDP connections. See DTLS encryption to learn more. - wss: Use for secured WebSocket connections.

    RelayServerEndpoint.NetworkOptions network

    The IP network.

    Boolean reliable

    A boolean value indicating whether the delivery of the data is guaranteed.

    Boolean secure

    A boolean value indicating whether the endpoint is secured.

    String host

    The host name or IP address of the Relay server.

    Int32 port

    The port number of the Relay server.

    Fields

    ConnectionTypeDtls

    Valid value of ConnectionType for dtls

    Declaration
    public const string ConnectionTypeDtls = "dtls"
    Field Value
    Type Description
    String

    ConnectionTypeUdp

    Valid value of ConnectionType for udp

    Declaration
    public const string ConnectionTypeUdp = "udp"
    Field Value
    Type Description
    String

    ConnectionTypeWss

    Valid value of ConnectionType for wss

    Declaration
    public const string ConnectionTypeWss = "wss"
    Field Value
    Type Description
    String

    Properties

    ConnectionType

    Canonical connection type: - udp: Use for plain UDP connections. - dtls: Use for secured UDP connections. See DTLS encryption to learn more. - wss: Use for secured WebSocket connections.

    Declaration
    [Preserve]
    public string ConnectionType { get; }
    Property Value
    Type Description
    String

    Host

    The host name or IP address of the Relay server.

    Declaration
    [Preserve]
    public string Host { get; }
    Property Value
    Type Description
    String

    Network

    The IP network.

    Declaration
    [Preserve]
    public RelayServerEndpoint.NetworkOptions Network { get; }
    Property Value
    Type Description
    RelayServerEndpoint.NetworkOptions

    Port

    The port number of the Relay server.

    Declaration
    [Preserve]
    public int Port { get; }
    Property Value
    Type Description
    Int32

    Reliable

    A boolean value indicating whether the delivery of the data is guaranteed.

    Declaration
    [Preserve]
    public bool Reliable { get; }
    Property Value
    Type Description
    Boolean

    Secure

    A boolean value indicating whether the endpoint is secured.

    Declaration
    [Preserve]
    public bool Secure { get; }
    Property Value
    Type Description
    Boolean
    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