org.gudy.azureus2.core3.util
Class IPToHostNameResolver

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

public class IPToHostNameResolver
extends Object


Field Summary
protected static AEMonitor request_mon
           
protected static List request_queue
           
protected static AESemaphore request_semaphore
           
protected static AEThread2 resolver_thread
           
 
Constructor Summary
IPToHostNameResolver()
           
 
Method Summary
static IPToHostNameResolverRequest addResolverRequest(String ip, IPToHostNameResolverListener l)
           
static String syncResolve(String ip, int timeout)
           
 
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_mon

protected static AEMonitor request_mon

request_semaphore

protected static AESemaphore request_semaphore
Constructor Detail

IPToHostNameResolver

public IPToHostNameResolver()
Method Detail

addResolverRequest

public static IPToHostNameResolverRequest addResolverRequest(String ip,
                                                             IPToHostNameResolverListener l)

syncResolve

public static String syncResolve(String ip,
                                 int timeout)
                          throws Exception
Throws:
Exception