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

/libcore/luni/src/main/native/
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.cpp272 jobject inetAddress = sockaddrToInetAddress(env, ss, &port); local
273 if (inetAddress == NULL) {
278 return env->NewObject(JniConstants::inetSocketAddressClass, ctor, inetAddress, port);
718 ScopedLocalRef<jobject> inetAddress(env, sockaddrToInetAddress(env, address, NULL));
719 if (inetAddress.get() == NULL) {
722 env->SetObjectArrayElement(result, index, inetAddress.get());
/libcore/luni/src/main/java/libcore/io/
H A DIoBridge.java105 * Connects socket 'fd' to 'inetAddress' on 'port', with no timeout. The lack of a timeout
108 public static void connect(FileDescriptor fd, InetAddress inetAddress, int port) throws SocketException { argument
110 IoBridge.connect(fd, inetAddress, port, 0);
117 * Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'.
120 public static void connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws SocketException, SocketTimeoutException { argument
122 connectErrno(fd, inetAddress, port, timeoutMs);
124 throw new ConnectException(connectDetail(inetAddress, port, timeoutMs, errnoException), errnoException);
134 private static void connectErrno(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws ErrnoException, IOException { argument
137 Libcore.os.connect(fd, inetAddress, port);
154 Libcore.os.connect(fd, inetAddress, por
175 connectDetail(InetAddress inetAddress, int port, int timeoutMs, ErrnoException cause) argument
209 isConnected(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs, int remainingTimeoutMs) argument
506 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument
520 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument
[all...]
H A DBlockGuardOs.java268 @Override public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument
270 return os.sendto(fd, buffer, flags, inetAddress, port);
273 @Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument
275 if (inetAddress != null) {
278 return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
H A DForwardingOs.java133 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
134 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.java125 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException; argument
126 public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException; argument
H A DPosix.java191 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument
196 bytesSent = sendtoBytes(fd, buffer, position, buffer.remaining(), flags, inetAddress, port);
198 bytesSent = sendtoBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + position, buffer.remaining(), flags, inetAddress, port);
204 public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument
206 return sendtoBytes(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
208 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.java265 private static InetAddress disallowDeprecatedFormats(String address, InetAddress inetAddress) { argument
267 if (!(inetAddress instanceof Inet4Address) || address.indexOf(':') != -1) {
268 return inetAddress;
500 InetAddress inetAddress = parseNumericAddressNoThrow(address);
501 return inetAddress != null && disallowDeprecatedFormats(address, inetAddress) != null;
/libcore/luni/src/main/java/android/system/
H A DOs.java390 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
395 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 217 milliseconds