Class RelayServer
Deprecated: Use the serverEndpoints collection instead. Refer to the RelayServerEndpoint object. The IPv4 connection details of a Relay server. The Relay server configuration determines the network protocol (currently only UDP) required by this IP address and port combination.
Inherited Members
Namespace: Unity.Services.Apis.Relay
Assembly: solution.dll
Syntax
[Preserve]
public class RelayServer
Constructors
RelayServer(string, int)
Initializes a new instance of the RelayServer class.
Declaration
[Preserve]
public RelayServer(string ipV4 = null, int port = 0)
Parameters
Type | Name | Description |
---|---|---|
string | ipV4 | The IPv4 address of the Relay server. (required). |
int | port | The port number of the Relay server. (required). |
Properties
IpV4
The IPv4 address of the Relay server.
Declaration
[Preserve]
public string IpV4 { get; set; }
Property Value
Type | Description |
---|---|
string | The IPv4 address of the Relay server. |
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. |