public interface NameServiceClient
Modifier and Type | Method and Description |
---|---|
UniAddress[] |
getAllByName(String hostname,
boolean possibleNTDomainOrWorkgroup)
Lookup addresses for the given hostname.
|
UniAddress |
getByName(String hostname)
Determines the address of a host given it's host name.
|
UniAddress |
getByName(String hostname,
boolean possibleNTDomainOrWorkgroup)
Lookup hostname and return it's UniAddress.
|
Lmhosts |
getLmhosts() |
NbtAddress |
getLocalHost() |
Name |
getLocalName() |
NbtAddress[] |
getNbtAllByAddress(NbtAddress addr)
Retrieve all addresses of a host by it's address.
|
NbtAddress[] |
getNbtAllByAddress(String host)
Retrieve all addresses of a host by it's address.
|
NbtAddress[] |
getNbtAllByAddress(String host,
int type,
String scope)
Retrieve all addresses of a host by it's address.
|
NbtAddress[] |
getNbtAllByName(String host,
int type,
String scope,
InetAddress svr)
Retrieve all addresses of a host by it's name.
|
NbtAddress |
getNbtByName(String host)
Determines the address of a host given it's host name.
|
NbtAddress |
getNbtByName(String host,
int type,
String scope)
Determines the address of a host given it's host name.
|
NbtAddress |
getNbtByName(String host,
int type,
String scope,
InetAddress svr)
Determines the address of a host given it's host name.
|
NbtAddress[] |
getNodeStatus(NbtAddress nbtAddress) |
Name |
getUnknownName() |
NbtAddress getLocalHost()
Name getLocalName()
Lmhosts getLmhosts()
Name getUnknownName()
NbtAddress[] getNbtAllByAddress(NbtAddress addr) throws UnknownHostException
addr
- the address to queryUnknownHostException
- if address cannot be resolvedNbtAddress[] getNbtAllByAddress(String host, int type, String scope) throws UnknownHostException
getByName(java.lang.String, boolean)
for a description of type
and scope
.host
- hostname to lookup all addresses fortype
- the hexcode of the namescope
- the scope of the nameUnknownHostException
- if there is an error resolving the nameNbtAddress[] getNbtAllByAddress(String host) throws UnknownHostException
host
- hostname to lookup all addresses forUnknownHostException
- if there is an error resolving the nameNbtAddress[] getNbtAllByName(String host, int type, String scope, InetAddress svr) throws UnknownHostException
host
- hostname to lookup all addresses fortype
- the hexcode of the namescope
- the scope of the namesvr
- server to queryUnknownHostException
NbtAddress getNbtByName(String host, int type, String scope, InetAddress svr) throws UnknownHostException
type
. Types(aka Hex Codes)
are used to distiquish the various services on a host. Here is
a fairly complete list of NetBIOS hex codes. Scope is not used but is
still functional in other NetBIOS products and so for completeness it has been
implemented. A scope
of null
or ""
signifies no scope.
The additional svr
parameter specifies the address to
query. This might be the address of a specific host, a name server,
or a broadcast address.host
- the name to resolvetype
- the hex code of the namescope
- the scope of the namesvr
- server to queryUnknownHostException
- if there is an error resolving the nameNbtAddress getNbtByName(String host, int type, String scope) throws UnknownHostException
type
. Types(aka Hex Codes)
are used to distiquish the various services on a host. Here is
a fairly complete list of NetBIOS hex codes. Scope is not used but is
still functional in other NetBIOS products and so for completeness it has been
implemented. A scope
of null
or ""
signifies no scope.host
- the name to resolvetype
- the hex code of the namescope
- the scope of the nameUnknownHostException
- if there is an error resolving the nameNbtAddress getNbtByName(String host) throws UnknownHostException
UniAddress
or InetAddress
getByName
methods can be used for that.host
- hostname to resolveUnknownHostException
- if there is an error resolving the nameNbtAddress[] getNodeStatus(NbtAddress nbtAddress) throws UnknownHostException
nbtAddress
- UnknownHostException
UniAddress[] getAllByName(String hostname, boolean possibleNTDomainOrWorkgroup) throws UnknownHostException
hostname
- possibleNTDomainOrWorkgroup
- UnknownHostException
UniAddress getByName(String hostname, boolean possibleNTDomainOrWorkgroup) throws UnknownHostException
hostname
- possibleNTDomainOrWorkgroup
- UnknownHostException
UniAddress getByName(String hostname) throws UnknownHostException
hostname
- NetBIOS or DNS hostname to resolveUnknownHostException
- if there is an error resolving the nameCopyright © 2016. All rights reserved.