org.gudy.azureus2.core3.util
Class HostNameToIPResolver

java.lang.Object
  extended by org.gudy.azureus2.core3.util.HostNameToIPResolver

public class HostNameToIPResolver
extends Object

Author:
parg

Nested Class Summary
protected static class HostNameToIPResolver.request
           
 
Field Summary
protected static List request_queue
           
protected static AEMonitor request_queue_mon
           
protected static AESemaphore request_semaphore
           
protected static AEThread2 resolver_thread
           
 
Constructor Summary
HostNameToIPResolver()
           
 
Method Summary
static void addResolverRequest(String host, HostNameToIPResolverListener l)
           
static byte[] hostAddressToBytes(String host)
           
static InetAddress hostAddressToInetAddress(String host)
           
static boolean isDNSName(String host)
           
static boolean isNonDNSName(String host)
           
static InetAddress syncResolve(String host)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resolver_thread

protected static AEThread2 resolver_thread

request_queue

protected static List request_queue

request_queue_mon

protected static AEMonitor request_queue_mon

request_semaphore

protected static AESemaphore request_semaphore
Constructor Detail

HostNameToIPResolver

public HostNameToIPResolver()
Method Detail

isDNSName

public static boolean isDNSName(String host)

isNonDNSName

public static boolean isNonDNSName(String host)

syncResolve

public static InetAddress syncResolve(String host)
                               throws UnknownHostException
Throws:
UnknownHostException

addResolverRequest

public static void addResolverRequest(String host,
                                      HostNameToIPResolverListener l)

hostAddressToInetAddress

public static InetAddress hostAddressToInetAddress(String host)

hostAddressToBytes

public static byte[] hostAddressToBytes(String host)