v1.1.0
Latest
2021.3+

Class RelayServerEndpoint

The endpoint connection details of a Relay server.

Inheritance
RelayServerEndpoint
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
TypeNameDescription
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.

Booleanreliable

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

Booleansecure

A boolean value indicating whether the endpoint is secured.

Stringhost

The host name or IP address of the Relay server.

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
String

ConnectionTypeUdp

Valid value of ConnectionType for udp

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

ConnectionTypeWss

Valid value of ConnectionType for wss

Declaration
public const string ConnectionTypeWss = "wss"
Field Value
TypeDescription
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
TypeDescription
String

Host

The host name or IP address of the Relay server.

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

Network

The IP network.

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

Port

The port number of the Relay server.

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

Reliable

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

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

Secure

A boolean value indicating whether the endpoint is secured.

Declaration
[Preserve]
public bool Secure { get; }
Property Value
TypeDescription
Boolean