/libcore/ojluni/src/main/java/java/net/ |
D | Proxy.java | 61 private SocketAddress sa; field in Proxy 77 sa = null; in Proxy() 93 public Proxy(Type type, SocketAddress sa) { in Proxy() argument 94 if ((type == Type.DIRECT) || !(sa instanceof InetSocketAddress)) in Proxy() 95 … throw new IllegalArgumentException("type " + type + " is not compatible with address " + sa); in Proxy() 97 this.sa = sa; in Proxy() 117 return sa; in address()
|
D | ProxySelector.java | 165 public abstract void connectFailed(URI uri, SocketAddress sa, IOException ioe); in connectFailed() argument
|
/libcore/ojluni/src/main/native/ |
D | InheritedChannel.c | 45 static int matchFamily(struct sockaddr *sa) { in matchFamily() argument 46 int family = sa->sa_family; in matchFamily() 58 struct sockaddr *sa; in Java_sun_nio_ch_InheritedChannel_peerAddress0() local 63 NET_AllocSockaddr(&sa, (int *)&sa_len); in Java_sun_nio_ch_InheritedChannel_peerAddress0() 64 if (getpeername(fd, sa, &sa_len) == 0) { in Java_sun_nio_ch_InheritedChannel_peerAddress0() 65 if (matchFamily(sa)) { in Java_sun_nio_ch_InheritedChannel_peerAddress0() 66 remote_ia = NET_SockaddrToInetAddress(env, sa, (int *)&remote_port); in Java_sun_nio_ch_InheritedChannel_peerAddress0() 69 free((void *)sa); in Java_sun_nio_ch_InheritedChannel_peerAddress0() 78 struct sockaddr *sa; in Java_sun_nio_ch_InheritedChannel_peerPort0() local 82 NET_AllocSockaddr(&sa, (int *)&sa_len); in Java_sun_nio_ch_InheritedChannel_peerPort0() [all …]
|
D | DatagramChannelImpl.c | 92 SOCKADDR sa; in Java_sun_nio_ch_DatagramChannelImpl_disconnect0() local 94 memset(&sa, 0, sizeof(sa)); in Java_sun_nio_ch_DatagramChannelImpl_disconnect0() 98 struct sockaddr_in6 *him6 = (struct sockaddr_in6 *)&sa; in Java_sun_nio_ch_DatagramChannelImpl_disconnect0() 108 struct sockaddr_in *him4 = (struct sockaddr_in*)&sa; in Java_sun_nio_ch_DatagramChannelImpl_disconnect0() 117 rv = connect(fd, (struct sockaddr *)&sa, len); in Java_sun_nio_ch_DatagramChannelImpl_disconnect0() 138 SOCKADDR sa; in Java_sun_nio_ch_DatagramChannelImpl_receive0() local 148 memset(&sa, 0, sa_len); in Java_sun_nio_ch_DatagramChannelImpl_receive0() 152 n = recvfrom(fd, buf, len, 0, (struct sockaddr *)&sa, &sa_len); in Java_sun_nio_ch_DatagramChannelImpl_receive0() 176 if (n == 0 && ((struct sockaddr *)&sa)->sa_family == 0) { in Java_sun_nio_ch_DatagramChannelImpl_receive0() 190 if (!NET_SockaddrEqualsInetAddress(env, (struct sockaddr *)&sa, in Java_sun_nio_ch_DatagramChannelImpl_receive0() [all …]
|
D | NativeThread.c | 61 struct sigaction sa, osa; in NativeThread_init() local 62 sa.sa_handler = nullHandler; in NativeThread_init() 63 sa.sa_flags = 0; in NativeThread_init() 64 sigemptyset(&sa.sa_mask); in NativeThread_init() 65 if (sigaction(INTERRUPT_SIGNAL, &sa, &osa) < 0) in NativeThread_init()
|
D | ServerSocketChannelImpl.c | 81 struct sockaddr *sa; in ServerSocketChannelImpl_accept0() local 87 NET_AllocSockaddr(&sa, &alloc_len); in ServerSocketChannelImpl_accept0() 96 newfd = accept(ssfd, sa, &sa_len); in ServerSocketChannelImpl_accept0() 107 free((void *)sa); in ServerSocketChannelImpl_accept0() 117 remote_ia = NET_SockaddrToInetAddress(env, sa, (int *)&remote_port); in ServerSocketChannelImpl_accept0() 118 free((void *)sa); in ServerSocketChannelImpl_accept0()
|
D | Net.c | 219 SOCKADDR sa; in Java_sun_nio_ch_Net_bind0() local 223 … if (NET_InetAddressToSockaddr(env, iao, port, (struct sockaddr *)&sa, &sa_len, preferIPv6) != 0) { in Java_sun_nio_ch_Net_bind0() 227 rv = NET_Bind(fdval(env, fdo), (struct sockaddr *)&sa, sa_len); in Java_sun_nio_ch_Net_bind0() 244 SOCKADDR sa; in Java_sun_nio_ch_Net_connect0() local 248 if (NET_InetAddressToSockaddr(env, iao, port, (struct sockaddr *) &sa, in Java_sun_nio_ch_Net_connect0() 254 rv = connect(fdval(env, fdo), (struct sockaddr *)&sa, sa_len); in Java_sun_nio_ch_Net_connect0() 269 SOCKADDR sa; in Java_sun_nio_ch_Net_localPort() local 271 if (getsockname(fdval(env, fdo), (struct sockaddr *)&sa, &sa_len) < 0) { in Java_sun_nio_ch_Net_localPort() 282 sin = (struct sockaddr_in *) &sa; in Java_sun_nio_ch_Net_localPort() 297 return NET_GetPortFromSockaddr((struct sockaddr *)&sa); in Java_sun_nio_ch_Net_localPort() [all …]
|
D | Inet6AddressImpl.c | 91 struct sockaddr *sa; in Inet6AddressImpl_getHostByAddr0() local 106 sa = (struct sockaddr *) &him4; in Inet6AddressImpl_getHostByAddr0() 116 sa = (struct sockaddr *) &him6 ; in Inet6AddressImpl_getHostByAddr0() 120 error = (*getnameinfo_ptr)(sa, len, host, NI_MAXHOST, NULL, 0, in Inet6AddressImpl_getHostByAddr0()
|
D | UNIXProcess_md.c | 198 struct sigaction sa; in setSIGCHLDHandler() local 199 sa.sa_handler = SIG_DFL; in setSIGCHLDHandler() 200 sigemptyset(&sa.sa_mask); in setSIGCHLDHandler() 201 sa.sa_flags = SA_NOCLDSTOP | SA_RESTART; in setSIGCHLDHandler() 202 if (sigaction(SIGCHLD, &sa, NULL) < 0) in setSIGCHLDHandler()
|
D | net_util_md.c | 344 SOCKADDR sa; in IPv6_supported() local 345 socklen_t sa_len = sizeof(sa); in IPv6_supported() 1285 struct sockaddr_in *sa = (struct sockaddr_in *)him; in NET_Bind() local 1286 if ((ntohl(sa->sin_addr.s_addr) & 0x7f0000ff) == 0x7f0000ff) { in NET_Bind()
|
/libcore/luni/src/test/java/android/system/ |
D | UnixSocketAddressTest.java | 28 UnixSocketAddress sa = UnixSocketAddress.createFileSystem(path); in testFilesystemSunPath() local 34 assertTrue(Arrays.equals(expected, sa.getSunPath())); in testFilesystemSunPath() 38 UnixSocketAddress sa = UnixSocketAddress.createUnnamed(); in testUnnamedSunPath() local 39 assertEquals(0, sa.getSunPath().length); in testUnnamedSunPath() 44 UnixSocketAddress sa = UnixSocketAddress.createAbstract(abstractName); in testAbstractSunPath() local 49 assertTrue(Arrays.equals(expected, sa.getSunPath())); in testAbstractSunPath()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | Net.java | 123 static InetSocketAddress checkAddress(SocketAddress sa) { in checkAddress() argument 124 if (sa == null) in checkAddress() 130 if (!(sa instanceof InetSocketAddress)) in checkAddress() 132 InetSocketAddress isa = (InetSocketAddress)sa; in checkAddress() 141 static InetSocketAddress asInetSocketAddress(SocketAddress sa) { in asInetSocketAddress() argument 142 if (!(sa instanceof InetSocketAddress)) in asInetSocketAddress() 144 return (InetSocketAddress)sa; in asInetSocketAddress()
|
D | SocketChannelImpl.java | 637 public boolean connect(SocketAddress sa) throws IOException { in connect() argument 643 InetSocketAddress isa = Net.checkAddress(sa); in connect()
|
D | DatagramChannelImpl.java | 732 public DatagramChannel connect(SocketAddress sa) throws IOException { in connect() argument 739 InetSocketAddress isa = Net.checkAddress(sa); in connect()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | ProxySelectorTest.java | 471 SocketAddress sa = InetSocketAddress.createUnresolved("127.0.0.1", 0); in test_connectionFailedLjava_net_URILjava_net_SocketAddressLjava_io_IOException_IllegalArguement() local 473 selector.connectFailed(null, sa, new SocketException()); in test_connectionFailedLjava_net_URILjava_net_SocketAddressLjava_io_IOException_IllegalArguement() 485 selector.connectFailed(httpUri, sa, null); in test_connectionFailedLjava_net_URILjava_net_SocketAddressLjava_io_IOException_IllegalArguement() 526 SocketAddress sa = InetSocketAddress.createUnresolved(host, port); in assertProxyEquals() local 527 Proxy proxy = new Proxy(type, sa); in assertProxyEquals() 536 public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { in connectFailed() argument
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLSocketFactoryTest.java | 239 InetSocketAddress sa = (InetSocketAddress) ss.getLocalSocketAddress(); in test_SSLSocketFactory_createSocket() local 240 InetAddress host = sa.getAddress(); in test_SSLSocketFactory_createSocket() 241 int port = sa.getPort(); in test_SSLSocketFactory_createSocket()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Package.java | 235 String [] sa = specVersion.split("\\.", -1); in isCompatibleWith() local 236 int [] si = new int[sa.length]; in isCompatibleWith() 237 for (int i = 0; i < sa.length; i++) { in isCompatibleWith() 238 si[i] = Integer.parseInt(sa[i]); in isCompatibleWith()
|
/libcore/ojluni/src/main/java/sun/net/spi/ |
D | DefaultProxySelector.java | 304 public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { in connectFailed() argument 305 if (uri == null || sa == null || ioe == null) { in connectFailed()
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 628 SocketAddress sa = Libcore.os.getsockname(fd); in getSocketLocalAddress() local 629 InetSocketAddress isa = (InetSocketAddress) sa; in getSocketLocalAddress() 638 SocketAddress sa = Libcore.os.getsockname(fd); in getSocketLocalPort() local 639 InetSocketAddress isa = (InetSocketAddress) sa; in getSocketLocalPort()
|
/libcore/luni/src/main/native/ |
D | libcore_io_Posix.cpp | 85 static bool isIPv4MappedAddress(const sockaddr *sa) { in isIPv4MappedAddress() argument 86 const sockaddr_in6 *sin6 = reinterpret_cast<const sockaddr_in6*>(sa); in isIPv4MappedAddress() 87 return sa != NULL && sa->sa_family == AF_INET6 && in isIPv4MappedAddress() 683 sockaddr* sa = reinterpret_cast<sockaddr*>(&ss); in doGetSockName() local 686 int rc = is_sockname ? TEMP_FAILURE_RETRY(getsockname(fd, sa, &byteCount)) in doGetSockName() 687 : TEMP_FAILURE_RETRY(getpeername(fd, sa, &byteCount)); in doGetSockName() 770 const sockaddr* sa = reinterpret_cast<const sockaddr*>(&ss); in Posix_bindSocketAddress() local 772 (void) NET_FAILURE_RETRY(env, int, bind, javaFd, sa, sa_len); in Posix_bindSocketAddress() 815 const sockaddr* sa = reinterpret_cast<const sockaddr*>(&ss); in Posix_connectSocketAddress() local 817 (void) NET_FAILURE_RETRY(env, int, connect, javaFd, sa, sa_len); in Posix_connectSocketAddress() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/ |
D | HttpURLConnectionTest.java | 153 public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { in connectFailed() argument
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectOutputStream.java | 1388 short[] sa = (short[]) array; in writeArray() local 1389 bout.writeInt(sa.length); in writeArray() 1390 bout.writeShorts(sa, 0, sa.length); in writeArray()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | SocketTest.java | 408 public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { in testSocketWithProxySet()
|
D | OldURLTest.java | 573 public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { in connectFailed() argument
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/ |
D | HttpURLConnection.java | 1036 String[] sa = resp.split("\\s+"); 1040 if (sa.length > 1) 1041 responseCode = Integer.parseInt(sa[1]);
|