C# Class MonoDroidToolkit.NetworkUtils

Afficher le fichier Open project: jamesmontemagno/MonoDroidToolkit

Méthodes publiques

Méthode Description
GetAllNetworkInterfaces ( ) : List
GetHostName ( ) : string

Get system's hostname Can NOT be called from UI thread

GetIPAddress ( bool useIPv4 = true ) : String

Get IP address from first non-localhost interface

GetMacAddress ( string interfaceName = null ) : string

Returns MAC address of the given interface name.

Method Details

GetAllNetworkInterfaces() public static méthode

public static GetAllNetworkInterfaces ( ) : List
Résultat List

GetHostName() public static méthode

Get system's hostname Can NOT be called from UI thread
public static GetHostName ( ) : string
Résultat string

GetIPAddress() public static méthode

Get IP address from first non-localhost interface
public static GetIPAddress ( bool useIPv4 = true ) : String
useIPv4 bool true=return ipv4, false=return ipv6
Résultat String

GetMacAddress() public static méthode

Returns MAC address of the given interface name.
public static GetMacAddress ( string interfaceName = null ) : string
interfaceName string interfaceName eth0, wlan0 or NULL=use first interface
Résultat string