Classes | |
class | Factory |
Public Member Functions | |
abstract InetAddress[] | getInetAddresses () |
void | lockInetAddress (InetAddress interfaceAddress) |
void | unlockInetAddress (InetAddress interfaceAddress) |
boolean | useInetAddress (NetworkInterface networkInterface, InetAddress interfaceAddress) |
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(); }
}
Definition at line 51 of file NetworkTopologyDiscovery.java.
abstract InetAddress [] javax.jmdns.NetworkTopologyDiscovery.getInetAddresses | ( | ) | [pure virtual] |
Get all local Internet Addresses for the machine.
Implemented in javax.jmdns.impl.NetworkTopologyDiscoveryImpl.
void javax.jmdns.NetworkTopologyDiscovery.lockInetAddress | ( | InetAddress | interfaceAddress | ) |
Locks the given InetAddress if the device requires it.
interfaceAddress |
Implemented in javax.jmdns.impl.NetworkTopologyDiscoveryImpl.
void javax.jmdns.NetworkTopologyDiscovery.unlockInetAddress | ( | InetAddress | interfaceAddress | ) |
Locks the given InetAddress if the device requires it.
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
networkInterface | |
interfaceAddress |
true
is the address is to be used, false
otherwise. Implemented in javax.jmdns.impl.NetworkTopologyDiscoveryImpl.