Crosstales.OnlineCheck.Util.NetworkInfo Class Reference

Provides extra information about the network environment. More...

Static Public Member Functions

static void Refresh ()
 Refresh the network information. More...
 
static System.Collections.Generic.List< NetworkInterfacegetNetworkInterfaces (bool activeOnly=true)
 Returns a list of all available network interfaces. More...
 

Static Public Attributes

static string LastPublicIP => publicIpCache ?? (publicIpCache = PublicIP)
 Returns the last public IP. More...
 
static bool isPlatformSupported => !Helper.isWebPlatform && !Helper.isWSABasedPlatform
 Indicates if NetworkInfo is supporting the current platform. More...
 

Properties

static string PublicIP [get]
 Returns the public IP of the Internet connection. More...
 
static System.Collections.Generic.List< NetworkInterfaceLastNetworkInterfaces [get]
 Returns the last list of network interfaces. More...
 

Detailed Description

Provides extra information about the network environment.

Member Function Documentation

◆ getNetworkInterfaces()

static System.Collections.Generic.List<NetworkInterface> Crosstales.OnlineCheck.Util.NetworkInfo.getNetworkInterfaces ( bool  activeOnly = true)
static

Returns a list of all available network interfaces.

Parameters
activeOnlySearch only for active network interfaces (optional)
Returns
List of network interfaces.

◆ Refresh()

static void Crosstales.OnlineCheck.Util.NetworkInfo.Refresh ( )
static

Refresh the network information.

Member Data Documentation

◆ isPlatformSupported

bool Crosstales.OnlineCheck.Util.NetworkInfo.isPlatformSupported => !Helper.isWebPlatform && !Helper.isWSABasedPlatform
static

Indicates if NetworkInfo is supporting the current platform.

Returns
True if NetworkInfo supports current platform.

◆ LastPublicIP

string Crosstales.OnlineCheck.Util.NetworkInfo.LastPublicIP => publicIpCache ?? (publicIpCache = PublicIP)
static

Returns the last public IP.

Returns
Last public IP.

Property Documentation

◆ LastNetworkInterfaces

System.Collections.Generic.List<NetworkInterface> Crosstales.OnlineCheck.Util.NetworkInfo.LastNetworkInterfaces
staticget

Returns the last list of network interfaces.

Returns
Last list of network interfaces.

◆ PublicIP

string Crosstales.OnlineCheck.Util.NetworkInfo.PublicIP
staticget

Returns the public IP of the Internet connection.

Returns
Public IP of the Internet connection.

The documentation for this class was generated from the following file:
  • C:/Users/slaub/Unity/assets/OnlineCheck/OnlineCheckPro/Assets/Plugins/crosstales/OnlineCheck/Scripts/Util/NetworkInfo.cs