Quantum 3 3.1.0

Public Member Functions | Public Attributes | List of all members
Photon.Realtime.ServerPorts Struct Reference

Struct to keep port-values per server. More...

Public Member Functions

ushort Get (ServerConnection serverType)
 Gets the stored port for a specific ServerConnection / type. More...
 

Public Attributes

ushort GameServer
 Typical ports: UDP: 5055 or 27002, TCP: 4531, WSS: 19091 or 443. More...
 
ushort MasterServer
 Typical ports: UDP: 5056 or 27001, TCP: 4530, WSS: 19090 or 443. More...
 
ushort NameServer
 Typical ports: UDP: 5058 or 27000, TCP: 4533, WSS: 19093 or 443. More...
 

Detailed Description

Struct to keep port-values per server.

Member Function Documentation

◆ Get()

ushort Photon.Realtime.ServerPorts.Get ( ServerConnection  serverType)
inline

Gets the stored port for a specific ServerConnection / type.

Parameters
serverTypeServer type.
Returns
Port to user or zero as default (do not override with 0).
Exceptions
ArgumentOutOfRangeExceptionIf the server type is unknown.

Member Data Documentation

◆ NameServer

ushort Photon.Realtime.ServerPorts.NameServer

Typical ports: UDP: 5058 or 27000, TCP: 4533, WSS: 19093 or 443.

◆ MasterServer

ushort Photon.Realtime.ServerPorts.MasterServer

Typical ports: UDP: 5056 or 27001, TCP: 4530, WSS: 19090 or 443.

◆ GameServer

ushort Photon.Realtime.ServerPorts.GameServer

Typical ports: UDP: 5055 or 27002, TCP: 4531, WSS: 19091 or 443.