Photon Unity Networking 2: RegionPinger Class Reference
From Photon Unity Networking 2
 |
Photon Unity Networking 2
2.12
|
|
|
| RegionPinger (Region region, Action< Region > onDoneCallback) |
| |
|
bool | Start () |
| |
|
| static string | ResolveHost (string hostName) |
| | Attempts to resolve a hostname into an IP string or returns empty string if that fails. More...
|
| |
|
|
static int | Attempts = 5 |
| |
|
static bool | IgnoreInitialAttempt = true |
| |
|
static int | MaxMilliseconsPerPing = 800 |
| |
|
static int | PingWhenFailed = Attempts * MaxMilliseconsPerPing |
| |
| static string 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