-
Notifications
You must be signed in to change notification settings - Fork 118
/
GameServerConnectionInfo.cs
42 lines (35 loc) · 1.34 KB
/
GameServerConnectionInfo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
namespace Microsoft.Playfab.Gaming.GSDK.CSharp
{
using System.Collections.Generic;
public class GameServerConnectionInfo
{
public GameServerConnectionInfo()
{
}
public string PublicIpV4Adress { get; set; }
public IEnumerable<GamePort> GamePortsConfiguration { get; set; }
}
/// <summary>
/// A class that captures details about a game server port.
/// </summary>
public class GamePort
{
public GamePort()
{
}
/// <summary>
/// The friendly name / identifier for the port, specified by the game developer in the Build configuration.
/// </summary>
public string Name { get; set; }
/// <summary>
/// The port at which the game server should listen on (maps externally to <see cref="ClientConnectionPort" />).
/// For process based servers, this is determined by Control Plane, based on the ports available on the VM.
/// For containers, this is specified by the game developer in the Build configuration.
/// </summary>
public int ServerListeningPort { get; set; }
/// <summary>
/// The public port to which clients should connect (maps internally to <see cref="ServerListeningPort" />).
/// </summary>
public int ClientConnectionPort { get; set; }
}
}