net.tomp2p.connection
Class DiscoverNetwork6
java.lang.Object
net.tomp2p.connection.DiscoverNetwork6
- All Implemented Interfaces:
- DiscoverNetwork
public class DiscoverNetwork6
- extends Object
- implements DiscoverNetwork
Discovers and searches for interfaces and addresses for users with Java 1.6.
The feature to add broadcast addresses for searching peers over layer 2 is
supported.
- Author:
- Thomas Bocek
- See Also:
DiscoverNetwork5
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscoverNetwork6
public DiscoverNetwork6()
discoverNetwork
public String discoverNetwork(NetworkInterface networkInterface,
Bindings bindings)
- Description copied from interface:
DiscoverNetwork
- Discovers network interfaces and addresses. Since we need to do it
differently in Java5 and Java6 we need this interface and reflection. As
soon as this library supports Java6+, then these classes will be
simplified.
- Specified by:
discoverNetwork
in interface DiscoverNetwork
- Parameters:
networkInterface
- The networkinterface to search for addresses to listen tobindings
- The search hints and result storage.
- Returns:
Copyright © 2012. All Rights Reserved.