JmDNS 3.4.1

javax.jmdns.impl
Class NetworkTopologyDiscoveryImpl

java.lang.Object
  extended by javax.jmdns.impl.NetworkTopologyDiscoveryImpl
All Implemented Interfaces:
NetworkTopologyDiscovery

public class NetworkTopologyDiscoveryImpl
extends Object
implements NetworkTopologyDiscovery

This class implements NetworkTopologyDiscovery.

Author:
Pierre Frisch

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.jmdns.NetworkTopologyDiscovery
NetworkTopologyDiscovery.Factory
 
Constructor Summary
NetworkTopologyDiscoveryImpl()
           
 
Method Summary
 InetAddress[] getInetAddresses()
          Get all local Internet Addresses for the machine.
 void lockInetAddress(InetAddress interfaceAddress)
          Locks the given InetAddress if the device requires it.
 void unlockInetAddress(InetAddress interfaceAddress)
          Locks the given InetAddress if the device requires it.
 boolean useInetAddress(NetworkInterface networkInterface, InetAddress interfaceAddress)
          Check if a given InetAddress should be used for mDNS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkTopologyDiscoveryImpl

public NetworkTopologyDiscoveryImpl()
Method Detail

getInetAddresses

public InetAddress[] getInetAddresses()
Description copied from interface: NetworkTopologyDiscovery
Get all local Internet Addresses for the machine.

Specified by:
getInetAddresses in interface NetworkTopologyDiscovery
Returns:
Set of InetAddress

useInetAddress

public boolean useInetAddress(NetworkInterface networkInterface,
                              InetAddress interfaceAddress)
Description copied from interface: NetworkTopologyDiscovery
Check if a given InetAddress should be used for mDNS

Specified by:
useInetAddress in interface NetworkTopologyDiscovery
Returns:
true is the address is to be used, false otherwise.

lockInetAddress

public void lockInetAddress(InetAddress interfaceAddress)
Description copied from interface: NetworkTopologyDiscovery
Locks the given InetAddress if the device requires it.

Specified by:
lockInetAddress in interface NetworkTopologyDiscovery

unlockInetAddress

public void unlockInetAddress(InetAddress interfaceAddress)
Description copied from interface: NetworkTopologyDiscovery
Locks the given InetAddress if the device requires it.

Specified by:
unlockInetAddress in interface NetworkTopologyDiscovery

Last updated 2011-08-25 12:40

Copyright © 2002-2011 JmDNS. All Rights Reserved.