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

/libcore/luni/src/main/native/
H A DNetworkUtilities.cpp90 static bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage* ss, bool map) { argument
93 if (inetAddress == NULL) {
100 ss->ss_family = env->GetIntField(inetAddress, familyFid);
114 ScopedLocalRef<jbyteArray> addressBytes(env, reinterpret_cast<jbyteArray>(env->GetObjectField(inetAddress, bytesFid)));
129 sin6->sin6_scope_id = env->GetIntField(inetAddress, scopeFid);
156 bool inetAddressToSockaddrVerbatim(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage* ss) { argument
157 return inetAddressToSockaddr(env, inetAddress, port, ss, false);
160 bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage* ss) { argument
161 return inetAddressToSockaddr(env, inetAddress, port, ss, 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);
606 ScopedLocalRef<jobject> inetAddress(env, sockaddrToInetAddress(env, address, NULL));
607 if (inetAddress.get() == NULL) {
610 env->SetObjectArrayElement(result, index, inetAddress.get());
/libcore/luni/src/main/java/libcore/io/
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 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
466 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument
480 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument
[all...]
H A DForwardingOs.java108 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
109 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.java100 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException; argument
101 public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException; argument
H A DPosix.java142 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument
144 return sendtoBytes(fd, buffer, buffer.position(), buffer.remaining(), flags, inetAddress, port);
146 return sendtoBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + buffer.position(), buffer.remaining(), flags, inetAddress, port);
149 public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument
151 return sendtoBytes(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
153 private native int sendtoBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException; argument
/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;

Completed in 118 milliseconds