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

/libcore/luni/src/main/native/
H A DNetworkUtilities.cpp91 static bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len, bool map) { argument
95 if (inetAddress == NULL) {
102 ScopedLocalRef<jobject> holder(env, env->GetObjectField(inetAddress, holderFid));
120 ScopedLocalRef<jbyteArray> addressBytes(env, reinterpret_cast<jbyteArray>(env->CallObjectMethod(inetAddress, bytesMid)));
146 ScopedLocalRef<jobject> holder6(env, env->GetObjectField(inetAddress, holder6Fid));
178 bool inetAddressToSockaddrVerbatim(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) { argument
179 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, false);
182 bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) { argument
183 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, true);
H A Dlibcore_io_Linux.cpp370 jobject inetAddress = sockaddrToInetAddress(env, ss, &port); local
371 if (inetAddress == NULL) {
376 return env->NewObject(JniConstants::inetSocketAddressClass, ctor, inetAddress, port);
1237 ScopedLocalRef<jobject> inetAddress(env, sockaddrToInetAddress(env, address, NULL));
1238 if (inetAddress.get() == NULL) {
1241 env->SetObjectArrayElement(result, index, inetAddress.get());
/libcore/luni/src/main/java/libcore/io/
H A DIoBridge.java113 * Connects socket 'fd' to 'inetAddress' on 'port', with no timeout. The lack of a timeout
116 public static void connect(FileDescriptor fd, InetAddress inetAddress, int port) throws SocketException { argument
118 IoBridge.connect(fd, inetAddress, port, 0);
125 * Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'.
128 public static void connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws SocketException, SocketTimeoutException { argument
130 connectErrno(fd, inetAddress, port, timeoutMs);
138 throw new ConnectException(connectDetail(fd, inetAddress, port, timeoutMs,
149 private static void connectErrno(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws ErrnoException, IOException { argument
152 Libcore.os.connect(fd, inetAddress, port);
169 Libcore.os.connect(fd, inetAddress, por
192 connectDetail(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs, Exception cause) argument
248 isConnected(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs, int remainingTimeoutMs) argument
562 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument
576 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument
[all...]
H A DBlockGuardOs.java294 @Override public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument
296 return os.sendto(fd, buffer, flags, inetAddress, port);
299 @Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument
301 if (inetAddress != null) {
304 return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
H A DForwardingOs.java155 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return os.sendto(fd, buffer, flags, inetAddress, port); } argument
156 public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port); } argument
H A DLinux.java210 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument
215 bytesSent = sendtoBytes(fd, buffer, position, buffer.remaining(), flags, inetAddress, port);
217 bytesSent = sendtoBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + position, buffer.remaining(), flags, inetAddress, port);
223 public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument
225 return sendtoBytes(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
230 private native int sendtoBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException; argument
H A DOs.java141 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException; argument
142 public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException; argument
/libcore/luni/src/test/java/libcore/java/net/
H A DInetAddressTest.java235 InetAddress inetAddress = InetAddress.getByName("www.google.com");
236 new SerializationTester<InetAddress>(inetAddress, s) {
252 InetAddress inetAddress = InetAddress.getByName("www.google.com");
260 assertFalse(inetAddress.isReachable(netIf, 256, 500));
453 InetAddress inetAddress = InetAddress.getByAddress(LOOPBACK6_BYTES);
456 assertEquals("::1", getHostStringWithoutReverseDns(inetAddress));
459 assertEquals("ip6-localhost", inetAddress.getHostName());
462 assertEquals("ip6-localhost", getHostStringWithoutReverseDns(inetAddress));
467 InetAddress inetAddress = InetAddress.getByAddress(LOOPBACK4_BYTES);
468 checkInetAddress(LOOPBACK4_BYTES, "localhost", inetAddress);
576 getHostStringWithoutReverseDns(InetAddress inetAddress) argument
[all...]
/libcore/ojluni/src/main/java/java/net/
H A DInetAddress.java923 InetAddress inetAddress = parseNumericAddressNoThrow(address);
924 return inetAddress != null && disallowDeprecatedFormats(address, inetAddress) != null;
942 static InetAddress disallowDeprecatedFormats(String address, InetAddress inetAddress) { argument
944 if (!(inetAddress instanceof Inet4Address) || address.indexOf(':') != -1) {
945 return inetAddress;
/libcore/luni/src/main/java/android/system/
H A DOs.java455 public static int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return Libcore.os.sendto(fd, buffer, flags, inetAddress, port); } argument
460 public static int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return Libcore.os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port); } argument

Completed in 170 milliseconds