/libcore/luni/src/main/native/ |
H A D | NetworkUtilities.cpp | 103 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 D | libcore_io_Posix.cpp | 217 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 D | BlockGuardOs.java | 167 @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 D | IoBridge.java | 95 * 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 D | ForwardingOs.java | 113 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 D | Os.java | 105 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
|
H A D | Posix.java | 147 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
|
/libcore/luni/src/main/java/java/net/ |
H A D | InetAddress.java | 249 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;
|