org.gudy.azureus2.core3.util
Class HostNameToIPResolver
java.lang.Object
org.gudy.azureus2.core3.util.HostNameToIPResolver
public class HostNameToIPResolver
- extends Object
- Author:
- parg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resolver_thread
protected static AEThread2 resolver_thread
request_queue
protected static final List request_queue
request_queue_mon
protected static final AEMonitor request_queue_mon
request_semaphore
protected static final AESemaphore request_semaphore
HostNameToIPResolver
public HostNameToIPResolver()
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)