public static class NameRegister.UniqueNamePerInterface extends NameRegister.BaseRegister
NameRegister.BaseRegister, 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 |
incrementName(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.
|
incrementNameWithDash, incrementNameWithParentesis
public void register(InetAddress networkInterface, String name, NameRegister.NameType type)
NameRegister
networkInterface
- IP address to handlename
- name to registertype
- name type to registerpublic boolean checkName(InetAddress networkInterface, String name, NameRegister.NameType type)
NameRegister
networkInterface
- IP address to handlename
- name to checktype
- name type to checktrue
if the name is not in conflict, flase
otherwise.public String incrementName(InetAddress networkInterface, String name, NameRegister.NameType type)
NameRegister
networkInterface
- IP address to handlename
- name to incrementtype
- name type to incrementsCopyright © 2002–2016 JmDNS. All rights reserved.