Searched defs:netId (Results 1 - 10 of 10) sorted by relevance

/libcore/ojluni/src/main/java/sun/net/spi/nameservice/
H A DNameService.java31 public java.net.InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostException; argument
/libcore/ojluni/src/main/java/java/net/
H A DInetAddressImpl.java39 * Lookup all addresses for {@code hostname} on the given {@code netId}.
41 InetAddress[] lookupAllHostAddr(String hostname, int netId) throws UnknownHostException; argument
H A DInet6AddressImpl.java57 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 DInetAddress.java233 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 DAddressCache.java47 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 DOs.java56 /** @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 DForwardingOs.java55 public InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiException { return os.android_getaddrinfo(node, hints, netId); } argument
H A DOs.java46 public InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiException; argument
H A DPosix.java49 public native InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiException; argument
/libcore/luni/src/main/native/
H A Dlibcore_io_Posix.cpp950 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

Completed in 296 milliseconds