/libcore/ojluni/src/main/java/sun/net/spi/nameservice/ |
H A D | NameService.java | 31 public java.net.InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostException; argument
|
/libcore/ojluni/src/main/java/java/net/ |
H A D | InetAddressImpl.java | 39 * Lookup all addresses for {@code hostname} on the given {@code netId}. 41 InetAddress[] lookupAllHostAddr(String hostname, int netId) throws UnknownHostException; argument
|
H A D | Inet6AddressImpl.java | 57 public InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostException { argument 74 return lookupHostByName(host, netId); 81 * @param netId the network to perform resolution upon. 84 private static InetAddress[] lookupHostByName(String host, int netId) argument 88 Object cachedResult = addressCache.get(host, netId); 106 InetAddress[] addresses = Libcore.os.android_getaddrinfo(host, hints, netId); 111 addressCache.put(host, netId, addresses); 124 addressCache.putUnknownHost(host, netId, detailMessage);
|
H A D | InetAddress.java | 233 public InetAddress[] lookupAllHostAddr(String host, int netId) 235 return impl.lookupAllHostAddr(host, netId); 949 * performed on the network designated by {@code netId}. 953 * @param netId the network to use for host resolution. 958 public static InetAddress getByNameOnNet(String host, int netId) throws UnknownHostException { argument 959 return impl.lookupAllHostAddr(host, netId)[0]; 964 * performed on the network designated by {@code netId}. 967 * @param netId the network to use for host resolution. 972 public static InetAddress[] getAllByNameOnNet(String host, int netId) throws UnknownHostException { argument 973 return impl.lookupAllHostAddr(host, netId) [all...] |
/libcore/luni/src/main/java/java/net/ |
H A D | AddressCache.java | 47 AddressCacheKey(String hostname, int netId) { argument 49 mNetId = netId; 98 * Returns the cached InetAddress[] for 'hostname' on network 'netId'. Returns null 102 public Object get(String hostname, int netId) { argument 103 AddressCacheEntry entry = cache.get(new AddressCacheKey(hostname, netId)); 117 public void put(String hostname, int netId, InetAddress[] addresses) { argument 118 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(addresses)); 125 public void putUnknownHost(String hostname, int netId, String detailMessage) { argument 126 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(detailMessage));
|
/libcore/luni/src/main/java/android/system/ |
H A D | Os.java | 56 /** @hide */ public static InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiException { return Libcore.os.android_getaddrinfo(node, hints, netId); } argument
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | ForwardingOs.java | 55 public InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiException { return os.android_getaddrinfo(node, hints, netId); } argument
|
H A D | Os.java | 46 public InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiException; argument
|
H A D | Posix.java | 49 public native InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiException; argument
|
/libcore/luni/src/main/native/ |
H A D | libcore_io_Posix.cpp | 950 jobject javaHints, jint netId) { 970 int rc = android_getaddrinfofornet(node.c_str(), NULL, &hints, netId, 0, &addressList); 949 Posix_android_getaddrinfo(JNIEnv* env, jobject, jstring javaNode, jobject javaHints, jint netId) argument
|