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: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "RelayServer")]
[Preserve]
public class RelayServer
Constructors
RelayServer(string, int)
Initializes a new instance of the Relay
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
[DataMember(Name = "ipV4", IsRequired = true, EmitDefaultValue = true)]
[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
[DataMember(Name = "port", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public int Port { get; set; }
Property Value
Type | Description |
---|---|
int | The port number of the Relay server. |