Photon Unity Networking 2 2.45

Public Member Functions | List of all members
PingMono Class Reference

Uses C# Socket class from System.Net.Sockets (as Unity usually does). More...

Inherits PhotonPing.

Public Member Functions

override bool StartPing (string ip)
 Sends a "Photon Ping" to a server. More...
 
override bool Done ()
 Check if done. More...
 
override void Dispose ()
 Dispose of this ping. More...
 

Additional Inherited Members

- Public Attributes inherited from PhotonPing
string DebugString = ""
 Caches the last exception/error message, if any. More...
 
bool Successful
 True of the ping was successful. More...
 

Detailed Description

Uses C# Socket class from System.Net.Sockets (as Unity usually does).

Incompatible with Windows 8 Store/Phone API.

Member Function Documentation

◆ Dispose()

override void Dispose ( )
virtual

Dispose of this ping.

Reimplemented from PhotonPing.

◆ Done()

override bool Done ( )
virtual

Check if done.

Reimplemented from PhotonPing.

◆ StartPing()

override bool StartPing ( string  ip)
virtual

Sends a "Photon Ping" to a server.

Parameters
ipAddress in IPv4 or IPv6 format. An address containing a '.' will be interpreted as IPv4.
Returns
True if the Photon Ping could be sent.

Reimplemented from PhotonPing.