All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
Classes | Public Member Functions
javax.jmdns.NetworkTopologyDiscovery Interface Reference
Inheritance diagram for javax.jmdns.NetworkTopologyDiscovery:
Inheritance graph
[legend]

List of all members.

Classes

class  Factory

Public Member Functions

abstract InetAddress[] getInetAddresses ()
void lockInetAddress (InetAddress interfaceAddress)
void unlockInetAddress (InetAddress interfaceAddress)
boolean useInetAddress (NetworkInterface networkInterface, InetAddress interfaceAddress)

Detailed Description

This class is used to resolve the list of Internet address to use when attaching JmDNS to the network.

To create you own filtering class for Internet Addresses you will need to implement the class and the factory delegate. These must be called before any other call to JmDNS.

 public static class MyNetworkTopologyDiscovery implements NetworkTopologyDiscovery {
     @Override
     public InetAddress[] getInetAddresses() {
         // TODO Auto-generated method stub
         return null;
     }
     @Override
     public boolean useInetAddress(NetworkInterface networkInterface, InetAddress interfaceAddress) {
         // TODO Auto-generated method stub
         return false;
     }
 }
 public static class MyClass implements NetworkTopologyDiscovery.Factory.ClassDelegate {
     public MyClass() {
         super();
         NetworkTopologyDiscovery.Factory.setClassDelegate(this);
         // Access JmDNS or JmmDNS
     }
     @Override
     public NetworkTopologyDiscovery newNetworkTopologyDiscovery() {
         return new MyNetworkTopologyDiscovery();
     }
 }
 
Author:
Pierre Frisch

Definition at line 51 of file NetworkTopologyDiscovery.java.


Member Function Documentation

abstract InetAddress [] javax.jmdns.NetworkTopologyDiscovery.getInetAddresses ( ) [pure virtual]

Get all local Internet Addresses for the machine.

Returns:
Set of InetAddress

Implemented in javax.jmdns.impl.NetworkTopologyDiscoveryImpl.

void javax.jmdns.NetworkTopologyDiscovery.lockInetAddress ( InetAddress  interfaceAddress)

Locks the given InetAddress if the device requires it.

Parameters:
interfaceAddress

Implemented in javax.jmdns.impl.NetworkTopologyDiscoveryImpl.

void javax.jmdns.NetworkTopologyDiscovery.unlockInetAddress ( InetAddress  interfaceAddress)

Locks the given InetAddress if the device requires it.

Parameters:
interfaceAddress

Implemented in javax.jmdns.impl.NetworkTopologyDiscoveryImpl.

boolean javax.jmdns.NetworkTopologyDiscovery.useInetAddress ( NetworkInterface  networkInterface,
InetAddress  interfaceAddress 
)

Check if a given InetAddress should be used for mDNS

Parameters:
networkInterface
interfaceAddress
Returns:
true is the address is to be used, false otherwise.

Implemented in javax.jmdns.impl.NetworkTopologyDiscoveryImpl.


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


zeroconf_jmdns
Author(s): Daniel Stonier
autogenerated on Tue Nov 6 2012 13:08:26