Package com.biglybt.core.util
Class HostNameToIPResolver
- java.lang.Object
-
- com.biglybt.core.util.HostNameToIPResolver
-
public class HostNameToIPResolver extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
HostNameToIPResolver.request
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
INADDRSZ
protected static java.util.List
request_queue
protected static AEMonitor
request_queue_mon
protected static AESemaphore
request_semaphore
protected static AEThread2
resolver_thread
-
Constructor Summary
Constructors Constructor Description HostNameToIPResolver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addResolverRequest(java.lang.String host, HostNameToIPResolverListener l)
static byte[]
hostAddressToBytes(java.lang.String host)
static java.net.InetAddress
hostAddressToInetAddress(java.lang.String host)
static boolean
isDNSName(java.lang.String host)
static boolean
isNonDNSName(java.lang.String host)
static java.net.InetAddress
syncResolve(java.lang.String host)
(package private) static byte[]
textToNumericFormat(java.lang.String src)
-
-
-
Field Detail
-
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
-
INADDRSZ
static final int INADDRSZ
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
textToNumericFormat
static byte[] textToNumericFormat(java.lang.String src)
-
-