Photon Unity Networking 2 2.45

Public Member Functions | Properties | List of all members
Region Class Reference

Public Member Functions

 Region (string code, string address)
 
 Region (string code, int ping)
 
override string ToString ()
 
string ToString (bool compact=false)
 

Properties

string Code [get]
 
string Cluster [get]
 Unlike the CloudRegionCode, this may contain cluster information. More...
 
string HostAndPort [get, set]
 
int Ping [get, set]
 Weighted ping time. More...
 
bool WasPinged [get]
 

Property Documentation

◆ Cluster

string Cluster
get

Unlike the CloudRegionCode, this may contain cluster information.

◆ Ping

int Ping
getset

Weighted ping time.

Regions gets pinged 5 times (RegionPinger.Attempts). Out of those, the worst rtt is discarded and the best will be counted two times for a weighted average.