Searched refs:inetAddress (Results 1 - 15 of 15) sorted by relevance

/libcore/luni/src/main/native/
H A DNetworkUtilities.h30 bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port,
39 bool inetAddressToSockaddrVerbatim(JNIEnv* env, jobject inetAddress, int port,
H A DNetworkUtilities.cpp103 static bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len, bool map) { argument
107 if (inetAddress == NULL) {
114 ss.ss_family = env->GetIntField(inetAddress, familyFid);
129 ScopedLocalRef<jbyteArray> addressBytes(env, reinterpret_cast<jbyteArray>(env->GetObjectField(inetAddress, bytesFid)));
169 sin6.sin6_scope_id = env->GetIntField(inetAddress, scopeFid);
199 bool inetAddressToSockaddrVerbatim(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) { argument
200 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, false);
203 bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) { argument
204 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, true);
H A Dlibcore_io_Posix.cpp217 jobject inetAddress = sockaddrToInetAddress(env, ss, &port); local
218 if (inetAddress == NULL) {
223 return env->NewObject(JniConstants::inetSocketAddressClass, ctor, inetAddress, port);
658 ScopedLocalRef<jobject> inetAddress(env, sockaddrToInetAddress(env, address, NULL));
659 if (inetAddress.get() == NULL) {
662 env->SetObjectArrayElement(result, index, inetAddress.get());
/libcore/luni/src/main/java/libcore/io/
H A DIoBridge.java95 * Connects socket 'fd' to 'inetAddress' on 'port', with no timeout. The lack of a timeout
98 public static boolean connect(FileDescriptor fd, InetAddress inetAddress, int port) throws SocketException { argument
100 return IoBridge.connect(fd, inetAddress, port, 0);
107 * Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'.
110 public static boolean connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws SocketException, SocketTimeoutException { argument
112 return connectErrno(fd, inetAddress, port, timeoutMs);
114 throw new ConnectException(connectDetail(inetAddress, port, timeoutMs, errnoException), errnoException);
124 private static boolean connectErrno(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws ErrnoException, IOException { argument
127 Libcore.os.connect(fd, inetAddress, port);
144 Libcore.os.connect(fd, inetAddress, por
166 connectDetail(InetAddress inetAddress, int port, int timeoutMs, ErrnoException cause) argument
194 isConnected(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs, int remainingTimeoutMs) argument
459 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument
473 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument
[all...]
H A DBlockGuardOs.java167 @Override public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument
169 return os.sendto(fd, buffer, flags, inetAddress, port);
172 @Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument
174 if (inetAddress != null) {
177 return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
H A DPosix.java147 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument
149 return sendtoBytes(fd, buffer, buffer.position(), buffer.remaining(), flags, inetAddress, port);
151 return sendtoBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + buffer.position(), buffer.remaining(), flags, inetAddress, port);
154 public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument
156 return sendtoBytes(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
158 private native int sendtoBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException; argument
H A DForwardingOs.java113 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
114 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 DOs.java105 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException; argument
106 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 DOldDatagramSocketTest.java259 InetAddress inetAddress = InetAddress.getLocalHost();
261 ds.connect(inetAddress, portNumber);
263 inetAddress));
276 InetAddress inetAddress = InetAddress
279 ds.connect(inetAddress, portNumber);
281 inetAddress));
357 InetAddress inetAddress = InetAddress.getLocalHost();
359 ds.connect(inetAddress, portNumber);
427 InetAddress inetAddress = InetAddress.getLocalHost();
429 ds.connect(inetAddress, portNumbe
[all...]
H A DInetAddressTest.java155 InetAddress inetAddress = InetAddress.getByName("www.google.com");
156 new SerializationTester<InetAddress>(inetAddress, s) {
H A DURLTest.java56 for (InetAddress inetAddress : InetAddress.getAllByName("localhost")) {
57 String address = inetAddress.getHostAddress();
58 if (inetAddress instanceof Inet6Address) {
/libcore/luni/src/main/java/java/net/
H A DInetAddress.java249 private static InetAddress disallowDeprecatedFormats(String address, InetAddress inetAddress) { argument
251 if (!(inetAddress instanceof Inet4Address) || address.indexOf(':') != -1) {
252 return inetAddress;
467 InetAddress inetAddress = parseNumericAddressNoThrow(address);
468 return inetAddress != null && disallowDeprecatedFormats(address, inetAddress) != null;
/libcore/crypto/src/main/java/org/conscrypt/
H A DSSLSocketImpl.java222 InetAddress inetAddress = super.getInetAddress();
223 if (inetAddress != null) {
224 return inetAddress.getHostName();
H A DOpenSSLSocketImpl.java470 InetAddress inetAddress = super.getInetAddress();
471 if (inetAddress != null) {
472 return inetAddress.getHostName();
/libcore/luni/src/main/java/java/nio/
H A DSocketChannelImpl.java257 InetAddress inetAddress = connectAddress.getAddress();
259 finished = IoBridge.isConnected(fd, inetAddress, port, 0, 0); // Return immediately.

Completed in 290 milliseconds