C# 클래스 SharpCifs.UniAddress

Under normal conditions it is not necessary to use this class to use jCIFS properly.

Under normal conditions it is not necessary to use this class to use jCIFS properly. Name resolusion is handled internally to the jcifs.smb package.

This class is a wrapper for both Jcifs.Netbios.NbtAddress and System.Net.IPAddress . The name resolution mechanisms used will systematically query all available configured resolution services including WINS, broadcasts, DNS, and LMHOSTS. See Setting Name Resolution Properties and the jcifs.resolveOrder property. Changing jCIFS name resolution properties can greatly affect the behavior of the client and may be necessary for proper operation.

This class should be used in favor of InetAddress to resolve hostnames on LANs and WANs that support a mixture of NetBIOS/WINS and DNS resolvable hosts.

파일 보기 프로젝트 열기: brandonprry/Potato 1 사용 예제들

공개 메소드들

메소드 설명
Equals ( object obj ) : bool

Compare two addresses for equality.

Compare two addresses for equality. Two UniAddresss are equal if they are both UniAddress' and refer to the same IP address.

FirstCalledName ( ) : string

Guess first called name to try for session establishment.

Guess first called name to try for session establishment. This method is used exclusively by the jcifs.smb package.

GetAddress ( ) : object

Return the underlying NbtAddress or InetAddress.

Return the underlying NbtAddress or InetAddress.

GetAllByName ( string hostname, bool possibleNtDomainOrWorkgroup ) : SharpCifs.UniAddress[]
GetByName ( string hostname ) : UniAddress

Determines the address of a host given it's host name.

Determines the address of a host given it's host name. The name can be a machine name like "jcifs.samba.org", or an IP address like "192.168.1.15".

GetByName ( string hostname, bool possibleNtDomainOrWorkgroup ) : UniAddress

Lookup hostname and return it's UniAddress.

Lookup hostname and return it's UniAddress. If the possibleNTDomainOrWorkgroup parameter is true an addtional name query will be performed to locate a master browser.

GetHashCode ( ) : int

Return the IP address of this address as a 32 bit integer.

Return the IP address of this address as a 32 bit integer.

GetHostAddress ( ) : string

Return the IP address as text such as "192.168.1.15".

Return the IP address as text such as "192.168.1.15".

GetHostIpAddress ( ) : IPAddress
GetHostName ( ) : string

Return the hostname of this address such as "MYCOMPUTER".

Return the hostname of this address such as "MYCOMPUTER".

NextCalledName ( ) : string

Guess next called name to try for session establishment.

Guess next called name to try for session establishment. This method is used exclusively by the jcifs.smb package.

ToString ( ) : string

Return the a text representation of this address such as MYCOMPUTER/192.168.1.15.

Return the a text representation of this address such as MYCOMPUTER/192.168.1.15.

UniAddress ( object addr ) : System

Create a UniAddress by wrapping an InetAddress or NbtAddress.

Create a UniAddress by wrapping an InetAddress or NbtAddress.

비공개 메소드들

메소드 설명
IsAllDigits ( string hostname ) : bool
IsDotQuadIp ( string hostname ) : bool
LookupServerOrWorkgroup ( string name, IPAddress svr ) : SharpCifs.Netbios.NbtAddress[]
UniAddress ( ) : System

메소드 상세

Equals() 공개 메소드

Compare two addresses for equality.
Compare two addresses for equality. Two UniAddresss are equal if they are both UniAddress' and refer to the same IP address.
public Equals ( object obj ) : bool
obj object
리턴 bool

FirstCalledName() 공개 메소드

Guess first called name to try for session establishment.
Guess first called name to try for session establishment. This method is used exclusively by the jcifs.smb package.
public FirstCalledName ( ) : string
리턴 string

GetAddress() 공개 메소드

Return the underlying NbtAddress or InetAddress.
Return the underlying NbtAddress or InetAddress.
public GetAddress ( ) : object
리턴 object

GetAllByName() 공개 정적인 메소드

public static GetAllByName ( string hostname, bool possibleNtDomainOrWorkgroup ) : SharpCifs.UniAddress[]
hostname string
possibleNtDomainOrWorkgroup bool
리턴 SharpCifs.UniAddress[]

GetByName() 공개 정적인 메소드

Determines the address of a host given it's host name.
Determines the address of a host given it's host name. The name can be a machine name like "jcifs.samba.org", or an IP address like "192.168.1.15".
if there is an error resolving the name ///
public static GetByName ( string hostname ) : UniAddress
hostname string NetBIOS or DNS hostname to resolve
리턴 UniAddress

GetByName() 공개 정적인 메소드

Lookup hostname and return it's UniAddress.
Lookup hostname and return it's UniAddress. If the possibleNTDomainOrWorkgroup parameter is true an addtional name query will be performed to locate a master browser.
public static GetByName ( string hostname, bool possibleNtDomainOrWorkgroup ) : UniAddress
hostname string
possibleNtDomainOrWorkgroup bool
리턴 UniAddress

GetHashCode() 공개 메소드

Return the IP address of this address as a 32 bit integer.
Return the IP address of this address as a 32 bit integer.
public GetHashCode ( ) : int
리턴 int

GetHostAddress() 공개 메소드

Return the IP address as text such as "192.168.1.15".
Return the IP address as text such as "192.168.1.15".
public GetHostAddress ( ) : string
리턴 string

GetHostIpAddress() 공개 메소드

public GetHostIpAddress ( ) : IPAddress
리턴 System.Net.IPAddress

GetHostName() 공개 메소드

Return the hostname of this address such as "MYCOMPUTER".
Return the hostname of this address such as "MYCOMPUTER".
public GetHostName ( ) : string
리턴 string

NextCalledName() 공개 메소드

Guess next called name to try for session establishment.
Guess next called name to try for session establishment. This method is used exclusively by the jcifs.smb package.
public NextCalledName ( ) : string
리턴 string

ToString() 공개 메소드

Return the a text representation of this address such as MYCOMPUTER/192.168.1.15.
Return the a text representation of this address such as MYCOMPUTER/192.168.1.15.
public ToString ( ) : string
리턴 string

UniAddress() 공개 메소드

Create a UniAddress by wrapping an InetAddress or NbtAddress.
Create a UniAddress by wrapping an InetAddress or NbtAddress.
public UniAddress ( object addr ) : System
addr object
리턴 System