C# 클래스 BF2Statistics.Net.Networking

파일 보기 프로젝트 열기: BF2Statistics/ControlCenter

공개 메소드들

메소드 설명
GetIpAddress ( string text ) : IPAddress

Takes a domain name, or IP address, and returns the Correct IP address. If multiple IP addresses are found, the first one is returned

IP2Long ( string ip ) : long

Converts a string IP address into MySQL INET_ATOA long

IsLanIP ( IPAddress address ) : bool

Returns whether the supplied IP Address in on the local Lan network

http://stackoverflow.com/questions/7232287/check-if-ip-is-in-lan-behind-firewalls-and-routers

IsLocalIpAddress ( string host ) : bool

Returns whether the IP address specified is a Local Ip Address

LongToIP ( long longIP ) : string

Converts a long to an IP Address

TryGetIpAddress ( string text, IPAddress &Ip ) : bool

Takes a domain name, or IP address, and returns the Correct IP address. If multiple IP addresses are found, the first one is returned

ValidateAddressAsync ( string address, IPAddress expectedAddress ) : Task

Asnychronously validates a hostname to an IPAddress

비공개 메소드들

메소드 설명
CheckMask ( IPAddress address, IPAddress mask, IPAddress target ) : bool

메소드 상세

GetIpAddress() 공개 정적인 메소드

Takes a domain name, or IP address, and returns the Correct IP address. If multiple IP addresses are found, the first one is returned
public static GetIpAddress ( string text ) : IPAddress
text string Domain name or IP Address
리턴 System.Net.IPAddress

IP2Long() 공개 정적인 메소드

Converts a string IP address into MySQL INET_ATOA long
public static IP2Long ( string ip ) : long
ip string THe IP Address
리턴 long

IsLanIP() 공개 정적인 메소드

Returns whether the supplied IP Address in on the local Lan network
http://stackoverflow.com/questions/7232287/check-if-ip-is-in-lan-behind-firewalls-and-routers
public static IsLanIP ( IPAddress address ) : bool
address System.Net.IPAddress
리턴 bool

IsLocalIpAddress() 공개 정적인 메소드

Returns whether the IP address specified is a Local Ip Address
public static IsLocalIpAddress ( string host ) : bool
host string The ip address to check
리턴 bool

LongToIP() 공개 정적인 메소드

Converts a long to an IP Address
public static LongToIP ( long longIP ) : string
longIP long
리턴 string

TryGetIpAddress() 공개 정적인 메소드

Takes a domain name, or IP address, and returns the Correct IP address. If multiple IP addresses are found, the first one is returned
public static TryGetIpAddress ( string text, IPAddress &Ip ) : bool
text string
Ip System.Net.IPAddress
리턴 bool

ValidateAddressAsync() 공개 정적인 메소드

Asnychronously validates a hostname to an IPAddress
public static ValidateAddressAsync ( string address, IPAddress expectedAddress ) : Task
address string The hostname to validate
expectedAddress System.Net.IPAddress The expected Ip Address
리턴 Task