v1.0.0
Latest
2022.3+

Class RelayServerEndpoint

The endpoint connection details of a Relay server.

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

Constructors

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

The endpoint connection details of a Relay server.

Declaration
public RelayServerEndpoint(string connectionType, RelayServerEndpoint.NetworkOptions network, bool reliable, bool secure, string host, int port)
Parameters
TypeNameDescription
System.StringconnectionType

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.NetworkOptionsnetwork

The IP network.

System.Booleanreliable

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

System.Booleansecure

A boolean value indicating whether the endpoint is secured.

System.Stringhost

The host name or IP address of the Relay server.

System.Int32port

The port number of the Relay server.

Fields

ConnectionTypeDtls

Valid value of ConnectionType for dtls

Declaration
public const string ConnectionTypeDtls = "dtls"
Field Value
TypeDescription
System.String

ConnectionTypeUdp

Valid value of ConnectionType for udp

Declaration
public const string ConnectionTypeUdp = "udp"
Field Value
TypeDescription
System.String

ConnectionTypeWss

Valid value of ConnectionType for wss

Declaration
public const string ConnectionTypeWss = "wss"
Field Value
TypeDescription
System.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
public string ConnectionType { get; }
Property Value
TypeDescription
System.String

Host

The host name or IP address of the Relay server.

Declaration
public string Host { get; }
Property Value
TypeDescription
System.String

Network

The IP network.

Declaration
public RelayServerEndpoint.NetworkOptions Network { get; }
Property Value
TypeDescription
RelayServerEndpoint.NetworkOptions

Port

The port number of the Relay server.

Declaration
public int Port { get; }
Property Value
TypeDescription
System.Int32

Reliable

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

Declaration
public bool Reliable { get; }
Property Value
TypeDescription
System.Boolean

Secure

A boolean value indicating whether the endpoint is secured.

Declaration
public bool Secure { get; }
Property Value
TypeDescription
System.Boolean