Class ServerConfig
The server configuration for the current session.
Inherited Members
Namespace: Unity.Services.Multiplay
Syntax
[Preserve]
public class ServerConfig
Constructors
ServerConfig(Int64, String, UInt16, UInt16, String, String)
Creates an instance of ServerConfig. Note that you should not manually create one of these except for testing. Instead, use MultiplayService.ServerConfig to access the server configuration.
Declaration
[Preserve]
public ServerConfig(long serverId, string allocationId, ushort queryPort, ushort port, string ip, string serverLogDirectory)
Parameters
| Type | Name | Description |
|---|---|---|
| Int64 | serverId | The Server ID. |
| String | allocationId | The Allocation ID for the server. |
| UInt16 | queryPort | The Query Port. |
| UInt16 | port | The Game Session Port. |
| String | ip | The Game Session IP Address. |
| String | serverLogDirectory | The Server Log Directory. |
Properties
AllocationId
The allocation ID.
Declaration
[Preserve]
public string AllocationId { get; }
Property Value
| Type | Description |
|---|---|
| String |
IpAddress
The connection ip for the session.
Declaration
[Preserve]
public string IpAddress { get; }
Property Value
| Type | Description |
|---|---|
| String |
Port
The connection port for the session.
Declaration
[Preserve]
public ushort Port { get; }
Property Value
| Type | Description |
|---|---|
| UInt16 |
QueryPort
The Server Query Protocol Port.
Declaration
[Preserve]
public ushort QueryPort { get; }
Property Value
| Type | Description |
|---|---|
| UInt16 |
ServerId
The server ID.
Declaration
[Preserve]
public long ServerId { get; }
Property Value
| Type | Description |
|---|---|
| Int64 |
ServerLogDirectory
The directory logs will be written to.
Declaration
[Preserve]
public string ServerLogDirectory { get; }
Property Value
| Type | Description |
|---|---|
| String |