docs.unity3d.com
Search Results for

    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.Apis.Relay
    Assembly: solution.dll
    Syntax
    [Preserve]
    public class RelayServerEndpoint

    Constructors

    RelayServerEndpoint(string, NetworkEnum, bool, bool, string, int)

    Initializes a new instance of the RelayServerEndpoint class.

    Declaration
    [Preserve]
    public RelayServerEndpoint(string connectionType = null, RelayServerEndpoint.NetworkEnum network = (RelayServerEndpoint.NetworkEnum)0, bool reliable = false, bool secure = false, string host = null, int port = 0)
    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. (required).

    RelayServerEndpoint.NetworkEnum network

    The IP network. (required).

    bool reliable

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

    bool secure

    A boolean value indicating whether the endpoint is secured. (required).

    string host

    The host name or IP address of the Relay server. (required).

    int port

    The port number of the Relay server. (required).

    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; set; }
    Property Value
    Type Description
    string

    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.

    Host

    The host name or IP address of the Relay server.

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

    The host name or IP address of the Relay server.

    Network

    The IP network.

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

    The IP network.

    Port

    The port number of the Relay server.

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

    The port number of the Relay server.

    Reliable

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

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

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

    Secure

    A boolean value indicating whether the endpoint is secured.

    Declaration
    [Preserve]
    public bool Secure { get; set; }
    Property Value
    Type Description
    bool

    A boolean value indicating whether the endpoint is secured.

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