public static class NameRegister.UniqueNamePerInterface extends Object implements NameRegister
NameRegister.Factory, NameRegister.NameType, NameRegister.UniqueNameAcrossInterface, NameRegister.UniqueNamePerInterface
Constructor and Description |
---|
UniqueNamePerInterface() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkName(InetAddress networkInterface,
String name,
NameRegister.NameType type)
Checks a name that is defended by this group of mDNS.
|
String |
incrementHostName(InetAddress networkInterface,
String name,
NameRegister.NameType type)
Increments a name that is defended by this group of mDNS after it has been found in conflict.
|
void |
register(InetAddress networkInterface,
String name,
NameRegister.NameType type)
Registers a name that is defended by this group of mDNS.
|
public void register(InetAddress networkInterface, String name, NameRegister.NameType type)
NameRegister
register
in interface NameRegister
networkInterface
- IP address to handlename
- name to registertype
- name type to registerpublic boolean checkName(InetAddress networkInterface, String name, NameRegister.NameType type)
NameRegister
checkName
in interface NameRegister
networkInterface
- IP address to handlename
- name to checktype
- name type to checktrue
if the name is not in conflict, flase
otherwise.public String incrementHostName(InetAddress networkInterface, String name, NameRegister.NameType type)
NameRegister
incrementHostName
in interface NameRegister
networkInterface
- IP address to handlename
- name to incrementtype
- name type to incrementsCopyright © 2002–2018 JmDNS. All rights reserved.