public interface NameServiceClient
| Modifier and Type | Method and Description |
|---|---|
Address[] |
getAllByName(String hostname,
boolean possibleNTDomainOrWorkgroup)
Lookup addresses for the given hostname.
|
Address |
getByName(String hostname)
Determines the address of a host given it's host name.
|
Address |
getByName(String hostname,
boolean possibleNTDomainOrWorkgroup)
Lookup hostname and return it's UniAddress.
|
NetbiosAddress |
getLocalHost() |
NetbiosName |
getLocalName() |
NetbiosAddress[] |
getNbtAllByAddress(NetbiosAddress addr)
Retrieve all addresses of a host by it's address.
|
NetbiosAddress[] |
getNbtAllByAddress(String host)
Retrieve all addresses of a host by it's address.
|
NetbiosAddress[] |
getNbtAllByAddress(String host,
int type,
String scope)
Retrieve all addresses of a host by it's address.
|
NetbiosAddress[] |
getNbtAllByName(String host,
int type,
String scope,
InetAddress svr)
Retrieve all addresses of a host by it's name.
|
NetbiosAddress |
getNbtByName(String host)
Determines the address of a host given it's host name.
|
NetbiosAddress |
getNbtByName(String host,
int type,
String scope)
Determines the address of a host given it's host name.
|
NetbiosAddress |
getNbtByName(String host,
int type,
String scope,
InetAddress svr)
Determines the address of a host given it's host name.
|
NetbiosAddress[] |
getNodeStatus(NetbiosAddress nbtAddress) |
NetbiosName |
getUnknownName() |
NetbiosAddress getLocalHost()
NetbiosName getLocalName()
NetbiosName getUnknownName()
NetbiosAddress[] getNbtAllByAddress(NetbiosAddress addr) throws UnknownHostException
addr - the address to queryUnknownHostException - if address cannot be resolvedNetbiosAddress[] 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 nameNetbiosAddress[] getNbtAllByAddress(String host) throws UnknownHostException
host - hostname to lookup all addresses forUnknownHostException - if there is an error resolving the nameNetbiosAddress[] 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 queryUnknownHostExceptionNetbiosAddress getNbtByName(String host, int type, String scope, InetAddress svr) throws UnknownHostException
type. Types(aka Hex Codes)
are used to distinguish 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 nameNetbiosAddress getNbtByName(String host, int type, String scope) throws UnknownHostException
type. Types(aka Hex Codes)
are used to distinguish 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 nameNetbiosAddress 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 nameNetbiosAddress[] getNodeStatus(NetbiosAddress nbtAddress) throws UnknownHostException
nbtAddress - UnknownHostExceptionAddress[] getAllByName(String hostname, boolean possibleNTDomainOrWorkgroup) throws UnknownHostException
hostname - possibleNTDomainOrWorkgroup - UnknownHostExceptionAddress getByName(String hostname, boolean possibleNTDomainOrWorkgroup) throws UnknownHostException
hostname - possibleNTDomainOrWorkgroup - UnknownHostExceptionAddress getByName(String hostname) throws UnknownHostException
hostname - NetBIOS or DNS hostname to resolveUnknownHostException - if there is an error resolving the nameCopyright © 2021. All rights reserved.