C# 클래스 WebApplication4.Models.Utilitarios2

파일 보기 프로젝트 열기: Rxcso/PrototipoSoftware

공개 메소드들

메소드 설명
GetAllDevicesOnLAN ( ) : PhysicalAddress>.Dictionary

Get the IP and MAC addresses of all known devices on the LAN

1) This table is not updated often - it can take some human-scale time to notice that a device has dropped off the network, or a new device has connected. 2) This discards non-local devices if they are found - these are multicast and can be discarded by IP address range.

GetIPAddress ( ) : IPAddress

Gets the IP address of the current PC

GetMacAddress ( ) : System.Net.NetworkInformation.PhysicalAddress

Gets the MAC address of the current PC.

IsMulticast ( IPAddress ip ) : bool

Returns true if the specified IP address is a multicast address

비공개 메소드들

메소드 설명
GetIpNetTable ( IntPtr pIpNetTable, [ pdwSize, bool bOrder ) : int

메소드 상세

GetAllDevicesOnLAN() 공개 정적인 메소드

Get the IP and MAC addresses of all known devices on the LAN
1) This table is not updated often - it can take some human-scale time to notice that a device has dropped off the network, or a new device has connected. 2) This discards non-local devices if they are found - these are multicast and can be discarded by IP address range.
public static GetAllDevicesOnLAN ( ) : PhysicalAddress>.Dictionary
리턴 PhysicalAddress>.Dictionary

GetIPAddress() 공개 정적인 메소드

Gets the IP address of the current PC
public static GetIPAddress ( ) : IPAddress
리턴 System.Net.IPAddress

GetMacAddress() 공개 정적인 메소드

Gets the MAC address of the current PC.
public static GetMacAddress ( ) : System.Net.NetworkInformation.PhysicalAddress
리턴 System.Net.NetworkInformation.PhysicalAddress

IsMulticast() 공개 정적인 메소드

Returns true if the specified IP address is a multicast address
public static IsMulticast ( IPAddress ip ) : bool
ip System.Net.IPAddress
리턴 bool