com.aelitis.azureus.core.util
Class NetUtils

java.lang.Object
  extended by com.aelitis.azureus.core.util.NetUtils

public class NetUtils
extends java.lang.Object


Constructor Summary
NetUtils()
           
 
Method Summary
static java.net.NetworkInterface getByInetAddress(java.net.InetAddress addr)
           
static java.net.NetworkInterface getByName(java.lang.String name)
           
static java.net.InetAddress getLocalHost()
           
static java.util.List<java.net.NetworkInterface> getNetworkInterfaces()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetUtils

public NetUtils()
Method Detail

getNetworkInterfaces

public static java.util.List<java.net.NetworkInterface> getNetworkInterfaces()
                                                                      throws java.net.SocketException
Throws:
java.net.SocketException

getLocalHost

public static java.net.InetAddress getLocalHost()
                                         throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

getByName

public static java.net.NetworkInterface getByName(java.lang.String name)
                                           throws java.net.SocketException
Throws:
java.net.SocketException

getByInetAddress

public static java.net.NetworkInterface getByInetAddress(java.net.InetAddress addr)
                                                  throws java.net.SocketException
Throws:
java.net.SocketException