C# 클래스 MonoDroidToolkit.NetworkUtils

파일 보기 프로젝트 열기: jamesmontemagno/MonoDroidToolkit

공개 메소드들

메소드 설명
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