public class DiscoverNetworks extends Object
Bindings
class and provides all the necesary information,
then calls discoverInterfaces(Bindings)
. The results are stored in
Bindings
as well.Constructor and Description |
---|
DiscoverNetworks() |
Modifier and Type | Method and Description |
---|---|
static String |
discoverInterfaces(Bindings bindings)
Search for local interfaces.
|
static String |
discoverNetwork(NetworkInterface networkInterface,
Bindings bindings)
Discovers network interfaces and addresses.
|
public static String discoverInterfaces(Bindings bindings) throws IOException
Bindings
class. The results of
that search (InetAddress) are stored in Bindings
as well.bindings
- The hints for the search and also the results are stored thereIOException
- If anything goes wrong, such as reflection.public static String discoverNetwork(NetworkInterface networkInterface, Bindings bindings)
networkInterface
- The networkInterface to search for addresses to listen tobindings
- The search hints and result storage.Copyright © 2013. All Rights Reserved.