org.gudy.azureus2.core3.util
Class HostNameToIPResolver
java.lang.Object
org.gudy.azureus2.core3.util.HostNameToIPResolver
public class HostNameToIPResolver
- extends java.lang.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 java.util.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(java.lang.String host)
isNonDNSName
public static boolean isNonDNSName(java.lang.String host)
syncResolve
public static java.net.InetAddress syncResolve(java.lang.String host)
throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
addResolverRequest
public static void addResolverRequest(java.lang.String host,
HostNameToIPResolverListener l)
hostAddressToInetAddress
public static java.net.InetAddress hostAddressToInetAddress(java.lang.String host)
hostAddressToBytes
public static byte[] hostAddressToBytes(java.lang.String host)