net.tomp2p.connection
Class DiscoverNetwork5

java.lang.Object
  extended by net.tomp2p.connection.DiscoverNetwork5
All Implemented Interfaces:
DiscoverNetwork

public class DiscoverNetwork5
extends Object
implements DiscoverNetwork

Discovers and searches for interfaces and addresses for users with Java 1.5. The feature to add broadcast addresses for searching peers over layer 2 is not supported here. For such as feature, use Java 1.6

Author:
Thomas Bocek
See Also:
DiscoverNetwork6

Constructor Summary
DiscoverNetwork5()
           
 
Method Summary
 String discoverNetwork(NetworkInterface networkInterface, Bindings bindings)
          Discovers network interfaces and addresses.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoverNetwork5

public DiscoverNetwork5()
Method Detail

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 to
bindings - The search hints and result storage.
Returns:


Copyright © 2012. All Rights Reserved.