C# 클래스 FastNetwork.Utils.IPUtility

ip utility
파일 보기 프로젝트 열기: zhujunxxxxx/FastNetwork

공개 메소드들

메소드 설명
ConvertToNumber ( IPAddress ipAddress ) : long

ipaddress convert to long

ConvertToNumber ( string ipAddress ) : long

ipaddress convert to long

GetLocalIntranetIP ( ) : IPAddress

获取本机内网IP

GetLocalIntranetIPList ( ) : List

获取本机内网IP列表

IsIntranet ( IPAddress ipAddress ) : bool

true表示为内网IP

IsIntranet ( long longIP ) : bool

true表示为内网IP

IsIntranet ( string ipAddress ) : bool

true表示为内网IP

비공개 메소드들

메소드 설명
IPUtility ( ) : System.Collections.Generic

static new

메소드 상세

ConvertToNumber() 공개 정적인 메소드

ipaddress convert to long
public static ConvertToNumber ( IPAddress ipAddress ) : long
ipAddress System.Net.IPAddress
리턴 long

ConvertToNumber() 공개 정적인 메소드

ipaddress convert to long
public static ConvertToNumber ( string ipAddress ) : long
ipAddress string
리턴 long

GetLocalIntranetIP() 공개 정적인 메소드

获取本机内网IP
public static GetLocalIntranetIP ( ) : IPAddress
리턴 System.Net.IPAddress

GetLocalIntranetIPList() 공개 정적인 메소드

获取本机内网IP列表
public static GetLocalIntranetIPList ( ) : List
리턴 List

IsIntranet() 공개 정적인 메소드

true表示为内网IP
public static IsIntranet ( IPAddress ipAddress ) : bool
ipAddress System.Net.IPAddress
리턴 bool

IsIntranet() 공개 정적인 메소드

true表示为内网IP
public static IsIntranet ( long longIP ) : bool
longIP long
리턴 bool

IsIntranet() 공개 정적인 메소드

true表示为内网IP
public static IsIntranet ( string ipAddress ) : bool
ipAddress string
리턴 bool