com.aelitis.azureus.core.util
Class NetUtils

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

public class NetUtils
extends Object


Constructor Summary
NetUtils()
           
 
Method Summary
static NetworkInterface getByInetAddress(InetAddress addr)
           
static NetworkInterface getByName(String name)
           
static InetAddress getLocalHost()
           
static List<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 List<NetworkInterface> getNetworkInterfaces()
                                                   throws SocketException
Throws:
SocketException

getLocalHost

public static InetAddress getLocalHost()
                                throws UnknownHostException
Throws:
UnknownHostException

getByName

public static NetworkInterface getByName(String name)
                                  throws SocketException
Throws:
SocketException

getByInetAddress

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