Searched refs:addr (Results 1 - 25 of 57) sorted by relevance

123

/libcore/ojluni/src/main/java/java/net/
H A DInetAddressContainer.java29 InetAddress addr; field in class:InetAddressContainer
H A DInetAddressImpl.java51 * Reverse-lookup the host name for a given {@code addr}.
53 String getHostByAddr(byte[] addr) throws UnknownHostException; argument
74 * Whether {@code addr} is reachable over {@code netif}.
76 boolean isReachable(InetAddress addr, int timeout, NetworkInterface netif, argument
H A DInet4Address.java126 Inet4Address(String hostName, byte addr[]) { argument
129 if (addr != null) {
130 if (addr.length == INADDRSZ) {
131 int address = addr[3] & 0xFF;
132 address |= ((addr[2] << 8) & 0xFF00);
133 address |= ((addr[1] << 16) & 0xFF0000);
134 address |= ((addr[0] << 24) & 0xFF000000);
330 byte[] addr = new byte[INADDRSZ];
332 addr[0] = (byte) ((address >>> 24) & 0xFF);
333 addr[
[all...]
H A DInetSocketAddress.java61 private InetAddress addr; field in class:InetSocketAddress.InetSocketAddressHolder
65 private InetSocketAddressHolder(String hostname, InetAddress addr, int port) { argument
67 this.addr = addr;
76 return addr;
82 if (addr != null)
83 return addr.getHostName();
90 if (addr != null) {
91 if (addr.holder().getHostName() != null)
92 return addr
197 InetSocketAddress(InetAddress addr, int port) argument
[all...]
H A DInet6Address.java246 void setAddr(byte addr[]) { argument
247 if (addr.length == INADDRSZ) { // normal IPv6 address
248 System.arraycopy(addr, 0, ipaddress, 0, INADDRSZ);
252 void init(byte addr[], int scope_id) { argument
253 setAddr(addr);
262 void init(byte addr[], NetworkInterface nif) argument
265 setAddr(addr);
408 Inet6Address(String hostName, byte addr[], int scope_id) { argument
411 holder6.init(addr, scope_id);
414 Inet6Address(String hostName, byte addr[]) { argument
421 Inet6Address(String hostName, byte addr[], NetworkInterface nif) argument
428 Inet6Address(String hostName, byte addr[], String ifname) argument
455 getByAddress(String host, byte[] addr, NetworkInterface nif) argument
488 getByAddress(String host, byte[] addr, int scope_id) argument
505 initstr(String hostName, byte addr[], String ifname) argument
519 initif(String hostName, byte addr[], NetworkInterface nif) argument
[all...]
H A DInet6AddressImpl.java84 public native String getHostByAddr(byte[] addr) throws UnknownHostException;
85 private native boolean isReachable0(byte[] addr, int scope, int timeout, byte[] inf, int ttl, int if_scope) throws IOException;
162 public String getHostByAddr(byte[] addr) throws UnknownHostException { argument
165 return getHostByAddr0(addr);
175 public boolean isReachable(InetAddress addr, int timeout, NetworkInterface netif, int ttl) throws IOException { argument
181 * Which means same family as addr because at this point it could
189 if (inetaddr.getClass().isInstance(addr)) {
204 if (addr instanceof Inet6Address)
205 scope = ((Inet6Address) addr).getScopeId();
206 return isReachable0(addr
218 tcpEcho(InetAddress addr, int timeout, InetAddress sourceAddr, int ttl) argument
242 icmpEcho(InetAddress addr, int timeout, InetAddress sourceAddr, int ttl) argument
341 getHostByAddr0(byte[] addr) argument
[all...]
H A DInetAddress.java286 public String getHostByAddr(byte[] addr)
288 return impl.getHostByAddr(addr);
653 private static String getHostFromNameService(InetAddress addr) { argument
658 host = nameService.getHostByAddr(addr.getAddress());
669 ok = addr.equals(arr[i]);
675 host = addr.getHostAddress();
679 host = addr.getHostAddress();
953 public String getHostByAddr(byte[] addr)
955 return impl.getHostByAddr(addr);
1034 * <p> If addr specifie
1047 getByAddress(String host, byte[] addr) argument
1053 getByAddress(String host, byte[] addr, int scopeId) argument
1402 getByAddress(byte[] addr) argument
[all...]
H A DAuthenticator.java142 * @param addr The InetAddress of the site requesting authorization,
161 InetAddress addr,
180 a.requestingSite = addr;
202 * @param addr The InetAddress of the site requesting authentication,
223 InetAddress addr,
243 a.requestingSite = addr;
263 * @param addr The InetAddress of the site requesting authorization,
288 InetAddress addr,
310 a.requestingSite = addr;
160 requestPasswordAuthentication( InetAddress addr, int port, String protocol, String prompt, String scheme) argument
221 requestPasswordAuthentication( String host, InetAddress addr, int port, String protocol, String prompt, String scheme) argument
286 requestPasswordAuthentication( String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, RequestorType reqType) argument
H A DDatagramPacket.java340 InetSocketAddress addr = (InetSocketAddress) address;
341 if (addr.isUnresolved())
343 setAddress(addr.getAddress());
344 setPort(addr.getPort());
H A DDatagramSocket.java383 * @param addr The address and port to bind to.
388 * @throws IllegalArgumentException if addr is a SocketAddress subclass
392 public synchronized void bind(SocketAddress addr) throws SocketException { argument
397 if (addr == null)
398 addr = new InetSocketAddress(0);
399 if (!(addr instanceof InetSocketAddress))
401 InetSocketAddress epoint = (InetSocketAddress) addr;
420 void checkAddress (InetAddress addr, String op) { argument
421 if (addr == null) {
424 if (!(addr instanceo
509 connect(SocketAddress addr) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DInet6AddressTest.java35 InetAddress addr = null;
44 addr = InetAddress.getByName(addrName);
45 assertTrue("Multicast address " + addrName + " not detected.", addr
49 addr = InetAddress.getByName(addrName);
51 + " reporting as a multicast address.", !addr
61 addrName = "::224.42.42.42"; // an ipv4 multicast addr 1110 = 224
62 addr = InetAddress.getByName(addrName);
64 + " reported incorrectly as multicast.", !addr
68 addr = InetAddress.getByName(addrName);
70 + " reported incorrectly as multicast.", !addr
[all...]
H A DInet4AddressTest.java39 addrName = "224.0.0.0"; // a multicast addr 1110 = 224-239
40 InetAddress addr = InetAddress.getByName(addrName);
41 assertTrue("Multicast address " + addrName + " not detected.", addr
44 addrName = "239.255.255.255"; // a multicast addr 1110 = 224-239
45 addr = InetAddress.getByName(addrName);
46 assertTrue("Multicast address " + addrName + " not detected.", addr
50 addr = InetAddress.getByName(addrName);
52 + " reporting as a multicast address.", !addr
68 InetAddress addr = InetAddress.getByName(addrName);
69 assertTrue("Loopback address " + addrName + " not detected.", addr
[all...]
H A DDatagramSocketImplTest.java67 protected void bind(int port, InetAddress addr) throws SocketException { argument
96 protected void join(InetAddress addr) throws IOException { argument
101 protected void joinGroup(SocketAddress addr, NetworkInterface netInterface) argument
107 protected void leave(InetAddress addr) throws IOException { argument
112 protected void leaveGroup(SocketAddress addr, NetworkInterface netInterface) argument
/libcore/ojluni/src/main/java/sun/net/
H A DSocksProxy.java37 private SocksProxy(SocketAddress addr, int version) { argument
38 super(Proxy.Type.SOCKS, addr);
42 public static SocksProxy create(SocketAddress addr, int version) { argument
43 return new SocksProxy(addr, version);
/libcore/ojluni/src/main/java/sun/net/util/
H A DIPAddressUtil.java267 public static byte[] convertFromIPv4MappedAddress(byte[] addr) { argument
268 if (isIPv4MappedAddress(addr)) {
270 System.arraycopy(addr, 12, newAddr, 0, INADDR4SZ);
283 private static boolean isIPv4MappedAddress(byte[] addr) { argument
284 if (addr.length < INADDR16SZ) {
287 if ((addr[0] == 0x00) && (addr[1] == 0x00) &&
288 (addr[2] == 0x00) && (addr[3] == 0x00) &&
289 (addr[
[all...]
/libcore/ojluni/src/main/java/sun/net/spi/nameservice/
H A DNameService.java32 public String getHostByAddr(byte[] addr) throws UnknownHostException; argument
/libcore/luni/src/main/native/
H A Djava_util_regex_Matcher.cpp167 static jint Matcher_findImpl(JNIEnv* env, jclass, jlong addr, jint startIndex, jintArray offsets) { argument
168 MatcherState* state = toMatcherState(addr);
176 static jint Matcher_findNextImpl(JNIEnv* env, jclass, jlong addr, jintArray offsets) { argument
177 MatcherState* state = toMatcherState(addr);
185 static jint Matcher_groupCountImpl(JNIEnv*, jclass, jlong addr) { argument
186 MatcherState* state = toMatcherState(addr);
190 static jint Matcher_hitEndImpl(JNIEnv*, jclass, jlong addr) { argument
191 MatcherState* state = toMatcherState(addr);
195 static jint Matcher_lookingAtImpl(JNIEnv* env, jclass, jlong addr, jintArray offsets) { argument
196 MatcherState* state = toMatcherState(addr);
204 Matcher_matchesImpl(JNIEnv* env, jclass, jlong addr, jintArray offsets) argument
224 Matcher_requireEndImpl(JNIEnv*, jclass, jlong addr) argument
229 Matcher_setInputImpl(JNIEnv* env, jclass, jlong addr, jstring javaText, jint start, jint end) argument
236 Matcher_useAnchoringBoundsImpl(JNIEnv*, jclass, jlong addr, jboolean value) argument
241 Matcher_useTransparentBoundsImpl(JNIEnv*, jclass, jlong addr, jboolean value) argument
[all...]
/libcore/ojluni/src/main/java/java/util/zip/
H A DInflater.java383 long addr = zsRef.address();
385 if (addr != 0) {
386 end(addr);
420 private native static void setDictionary(long addr, byte[] b, int off, argument
422 private native int inflateBytes(long addr, byte[] b, int off, int len) argument
424 private native static int getAdler(long addr); argument
425 private native static void reset(long addr); argument
426 private native static void end(long addr); argument
H A DDeflater.java552 long addr = zsRef.address();
554 if (addr != 0) {
555 end(addr);
581 private native static void setDictionary(long addr, byte[] b, int off, int len); argument
582 private native int deflateBytes(long addr, byte[] b, int off, int len, argument
584 private native static int getAdler(long addr); argument
585 private native static void reset(long addr); argument
586 private native static void end(long addr); argument
/libcore/luni/src/test/java/libcore/java/net/
H A DOldAuthenticatorTest.java29 InetAddress addr = InetAddress.getLocalHost();
31 addr, 8080, "http", "promt", "HTTP");
37 addr = InetAddress.getLocalHost();
38 pa = Authenticator.requestPasswordAuthentication(addr, 80, "http", "promt", "HTTP");
/libcore/ojluni/src/main/native/
H A Djava_util_zip_Inflater.c94 Inflater_setDictionary(JNIEnv *env, jclass cls, jlong addr, argument
101 res = inflateSetDictionary(jlong_to_ptr(addr), buf + off, len);
108 JNU_ThrowIllegalArgumentException(env, ((z_stream *)jlong_to_ptr(addr))->msg);
111 JNU_ThrowInternalError(env, ((z_stream *)jlong_to_ptr(addr))->msg);
117 Inflater_inflateBytes(JNIEnv *env, jobject this, jlong addr, argument
120 z_stream *strm = jlong_to_ptr(addr);
181 Inflater_getAdler(JNIEnv *env, jclass cls, jlong addr) argument
183 return ((z_stream *)jlong_to_ptr(addr))->adler;
187 Inflater_reset(JNIEnv *env, jclass cls, jlong addr) argument
189 if (inflateReset(jlong_to_ptr(addr)) !
195 Inflater_end(JNIEnv *env, jclass cls, jlong addr) argument
[all...]
H A Djava_util_zip_Deflater.c102 Deflater_setDictionary(JNIEnv *env, jclass cls, jlong addr, argument
110 res = deflateSetDictionary((z_stream *)jlong_to_ptr(addr), buf + off, len);
119 JNU_ThrowInternalError(env, ((z_stream *)jlong_to_ptr(addr))->msg);
125 Deflater_deflateBytes(JNIEnv *env, jobject this, jlong addr, argument
128 z_stream *strm = jlong_to_ptr(addr);
220 Deflater_getAdler(JNIEnv *env, jclass cls, jlong addr) argument
222 return ((z_stream *)jlong_to_ptr(addr))->adler;
226 Deflater_reset(JNIEnv *env, jclass cls, jlong addr) argument
228 if (deflateReset((z_stream *)jlong_to_ptr(addr)) != Z_OK) {
234 Deflater_end(JNIEnv *env, jclass cls, jlong addr) argument
[all...]
H A Dnet_util.c132 jobject holder, addr; local
138 addr = (*env)->GetObjectField(env, holder, ia6_ipaddressID);
139 CHECK_NULL_RETURN(addr, JNI_FALSE);
140 (*env)->GetByteArrayRegion(env, addr, 0, 16, (jbyte *)dest);
146 jbyteArray addr; local
151 addr = (jbyteArray)(*env)->GetObjectField(env, holder, ia6_ipaddressID);
152 if (addr == NULL) {
153 addr = (*env)->NewByteArray(env, 16);
154 CHECK_NULL_RETURN(addr, JNI_FALSE);
155 (*env)->SetObjectField(env, holder, ia6_ipaddressID, addr);
345 in_cksum(unsigned short *addr, int len) argument
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DNet.java108 InetAddress addr = isa.getAddress();
109 if (!(addr instanceof Inet4Address || addr instanceof Inet6Address))
178 static InetSocketAddress getRevealedLocalAddress(InetSocketAddress addr) { argument
180 if (addr == null || sm == null)
181 return addr;
184 sm.checkConnect(addr.getAddress().getHostAddress(), -1);
188 addr = getLoopbackAddress(addr.getPort());
190 return addr;
193 getRevealedLocalAddressAsString(InetSocketAddress addr) argument
431 bind(FileDescriptor fd, InetAddress addr, int port) argument
437 bind(ProtocolFamily family, FileDescriptor fd, InetAddress addr, int port) argument
445 bind0(FileDescriptor fd, boolean preferIPv6, boolean useExclBind, InetAddress addr, int port) argument
[all...]
/libcore/ojluni/src/main/java/java/util/regex/
H A DMatcher.java1199 private static native boolean findImpl(long addr, int startIndex, int[] offsets); argument
1200 private static native boolean findNextImpl(long addr, int[] offsets); argument
1202 private static native int groupCountImpl(long addr); argument
1203 private static native boolean hitEndImpl(long addr); argument
1204 private static native boolean lookingAtImpl(long addr, int[] offsets); argument
1205 private static native boolean matchesImpl(long addr, int[] offsets); argument
1208 private static native boolean requireEndImpl(long addr); argument
1209 private static native void setInputImpl(long addr, String s, int start, int end); argument
1210 private static native void useAnchoringBoundsImpl(long addr, boolean value); argument
1211 private static native void useTransparentBoundsImpl(long addr, boolea argument
[all...]

Completed in 370 milliseconds

123