C# Класс MonoDroidToolkit.NetworkUtils

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

GetAllNetworkInterfaces() публичный статический Метод

public static GetAllNetworkInterfaces ( ) : List
Результат List

GetHostName() публичный статический Метод

Get system's hostname Can NOT be called from UI thread
public static GetHostName ( ) : string
Результат string

GetIPAddress() публичный статический Метод

Get IP address from first non-localhost interface
public static GetIPAddress ( bool useIPv4 = true ) : String
useIPv4 bool true=return ipv4, false=return ipv6
Результат String

GetMacAddress() публичный статический Метод

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
Результат string