Photon Unity Networking v1.101

Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
PhotonPingManager Class Reference

Public Member Functions

IEnumerator PingSocket (Region region)
 

Static Public Member Functions

static string ResolveHost (string hostName)
 Attempts to resolve a hostname into an IP string or returns empty string if that fails. More...
 

Public Attributes

bool UseNative
 

Static Public Attributes

static int Attempts = 5
 
static bool IgnoreInitialAttempt = true
 
static int MaxMilliseconsPerPing = 800
 

Properties

Region BestRegion [get]
 
bool Done [get]
 

Member Function Documentation

◆ PingSocket()

IEnumerator PhotonPingManager.PingSocket ( Region  region)

Affected by frame-rate of app, as this Coroutine checks the socket for a result once per frame.

◆ ResolveHost()

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
hostNameHostname to resolve.
Returns
IP string or empty string if resolution fails

Member Data Documentation

◆ Attempts

int PhotonPingManager.Attempts = 5
static

◆ IgnoreInitialAttempt

bool PhotonPingManager.IgnoreInitialAttempt = true
static

◆ MaxMilliseconsPerPing

int PhotonPingManager.MaxMilliseconsPerPing = 800
static

◆ UseNative

bool PhotonPingManager.UseNative

Property Documentation

◆ BestRegion

Region PhotonPingManager.BestRegion
get

◆ Done

bool PhotonPingManager.Done
get