JmDNS 3.4.1

javax.jmdns.impl
Interface NameRegister

All Known Implementing Classes:
NameRegister.UniqueNameAcrossInterface, NameRegister.UniqueNamePerInterface

public interface NameRegister


Nested Class Summary
static class NameRegister.Factory
           
static class NameRegister.NameType
           
static class NameRegister.UniqueNameAcrossInterface
           
static class NameRegister.UniqueNamePerInterface
           
 
Method Summary
 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.
 

Method Detail

register

void register(InetAddress networkInterface,
              String name,
              NameRegister.NameType type)
Registers a name that is defended by this group of mDNS.

Parameters:
networkInterface - IP address to handle
name - name to register
type - name type to register

checkName

boolean checkName(InetAddress networkInterface,
                  String name,
                  NameRegister.NameType type)
Checks a name that is defended by this group of mDNS.

Parameters:
networkInterface - IP address to handle
name - name to check
type - name type to check
Returns:
true if the name is not in conflict, flase otherwise.

incrementHostName

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.

Parameters:
networkInterface - IP address to handle
name - name to increment
type - name type to increments
Returns:
new name

Last updated 2011-08-25 12:40

Copyright © 2002-2011 JmDNS. All Rights Reserved.