Quantum 3
3.1.0
Summarizes a region's properties for Best Region selection and pinging. More...
Public Member Functions | |
| Region (string code, string address) | |
| Constructs a new Region instance from code and address. More... | |
| override string | ToString () |
| Provides a string representation of the Region. More... | |
| string | ToString (bool compact=false) |
| Provides a string representation of the Region, optionally including the address. More... | |
Properties | |
| string | Cluster [get] |
| Unlike the region Code, this may contain cluster information. More... | |
| string | Code [get] |
| A region's code as string (e.g. US, EU). More... | |
| string | HostAndPort [get] |
| The address of this region. More... | |
| int | Ping [get, set] |
| Weighted ping time. More... | |
| bool | WasPinged [get] |
| True if the region was pinged and Ping contains a valid value. More... | |
Summarizes a region's properties for Best Region selection and pinging.
Regions are usually representing geo locations (EU, US, etc) with a code, cluster, address.
|
inline |
Constructs a new Region instance from code and address.
|
inline |
Provides a string representation of the Region.
|
inline |
Provides a string representation of the Region, optionally including the address.
|
get |
A region's code as string (e.g. US, EU).
|
get |
Unlike the region Code, this may contain cluster information.
|
get |
The address of this region.
|
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.
|
get |
True if the region was pinged and Ping contains a valid value.