Photon Unity Networking: PhotonPingManager Class Reference
From Photon Unity Networking
 |
Photon Unity Networking
v1.88
|
|
| static string | ResolveHost (string hostName) |
| | Attempts to resolve a hostname into an IP string or returns empty string if that fails. More...
|
| |
| IEnumerator PhotonPingManager.PingSocket |
( |
Region |
region | ) |
|
Affected by frame-rate of app, as this Coroutine checks the socket for a result once per frame.
| static string PhotonPingManager.ResolveHost |
( |
string |
hostName | ) |
|
|
static |
Attempts to resolve a hostname into an IP string or returns empty string if that fails.
To be compatible with most platforms, the address family is checked like this: if (ipAddress.AddressFamily.ToString().Contains("6")) // ipv6...
- Parameters
-
| hostName | Hostname to resolve. |
- Returns
- IP string or empty string if resolution fails
| int PhotonPingManager.Attempts = 5 |
|
static |
| bool PhotonPingManager.IgnoreInitialAttempt = true |
|
static |
| int PhotonPingManager.MaxMilliseconsPerPing = 800 |
|
static |
| bool PhotonPingManager.UseNative |
| Region PhotonPingManager.BestRegion |
|
get |
| bool PhotonPingManager.Done |
|
get |