Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 25 of 27) sorted by relevance

12

/libcore/ojluni/src/main/java/java/net/
DProxy.java61 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()
DProxySelector.java164 public abstract void connectFailed(URI uri, SocketAddress sa, IOException ioe); in connectFailed() argument
/libcore/ojluni/src/main/native/
DDatagramChannelImpl.c104 SOCKADDR sa; in Java_sun_nio_ch_DatagramChannelImpl_disconnect0() local
106 memset(&sa, 0, sizeof(sa)); in Java_sun_nio_ch_DatagramChannelImpl_disconnect0()
110 struct sockaddr_in6 *him6 = (struct sockaddr_in6 *)&sa; in Java_sun_nio_ch_DatagramChannelImpl_disconnect0()
120 struct sockaddr_in *him4 = (struct sockaddr_in*)&sa; in Java_sun_nio_ch_DatagramChannelImpl_disconnect0()
129 rv = connect(fd, (struct sockaddr *)&sa, len); in Java_sun_nio_ch_DatagramChannelImpl_disconnect0()
158 SOCKADDR sa; in Java_sun_nio_ch_DatagramChannelImpl_receive0() local
168 memset(&sa, 0, sa_len); in Java_sun_nio_ch_DatagramChannelImpl_receive0()
172 n = recvfrom(fd, buf, len, 0, (struct sockaddr *)&sa, &sa_len); in Java_sun_nio_ch_DatagramChannelImpl_receive0()
196 if (n == 0 && ((struct sockaddr *)&sa)->sa_family == 0) { in Java_sun_nio_ch_DatagramChannelImpl_receive0()
210 if (!NET_SockaddrEqualsInetAddress(env, (struct sockaddr *)&sa, in Java_sun_nio_ch_DatagramChannelImpl_receive0()
[all …]
DServerSocketChannelImpl.c89 struct sockaddr *sa; in Java_sun_nio_ch_ServerSocketChannelImpl_accept0() local
95 NET_AllocSockaddr(&sa, &alloc_len); in Java_sun_nio_ch_ServerSocketChannelImpl_accept0()
96 if (sa == NULL) { in Java_sun_nio_ch_ServerSocketChannelImpl_accept0()
108 newfd = accept(ssfd, sa, &sa_len); in Java_sun_nio_ch_ServerSocketChannelImpl_accept0()
119 free((void *)sa); in Java_sun_nio_ch_ServerSocketChannelImpl_accept0()
129 remote_ia = NET_SockaddrToInetAddress(env, sa, (int *)&remote_port); in Java_sun_nio_ch_ServerSocketChannelImpl_accept0()
130 free((void *)sa); in Java_sun_nio_ch_ServerSocketChannelImpl_accept0()
DNativeThread.c80 struct sigaction sa, osa; in NativeThread_init() local
81 sa.sa_handler = nullHandler; in NativeThread_init()
82 sa.sa_flags = 0; in NativeThread_init()
83 sigemptyset(&sa.sa_mask); in NativeThread_init()
84 if (sigaction(INTERRUPT_SIGNAL, &sa, &osa) < 0) in NativeThread_init()
DNet.c318 SOCKADDR sa; in Java_sun_nio_ch_Net_bind0() local
322 … if (NET_InetAddressToSockaddr(env, iao, port, (struct sockaddr *)&sa, &sa_len, preferIPv6) != 0) { in Java_sun_nio_ch_Net_bind0()
326 rv = NET_Bind(fdval(env, fdo), (struct sockaddr *)&sa, sa_len); in Java_sun_nio_ch_Net_bind0()
343 SOCKADDR sa; in Java_sun_nio_ch_Net_connect0() local
347 if (NET_InetAddressToSockaddr(env, iao, port, (struct sockaddr *) &sa, in Java_sun_nio_ch_Net_connect0()
353 rv = connect(fdval(env, fdo), (struct sockaddr *)&sa, sa_len); in Java_sun_nio_ch_Net_connect0()
368 SOCKADDR sa; in Java_sun_nio_ch_Net_localPort() local
370 if (getsockname(fdval(env, fdo), (struct sockaddr *)&sa, &sa_len) < 0) { in Java_sun_nio_ch_Net_localPort()
381 sin = (struct sockaddr_in *) &sa; in Java_sun_nio_ch_Net_localPort()
402 return NET_GetPortFromSockaddr((struct sockaddr *)&sa); in Java_sun_nio_ch_Net_localPort()
[all …]
DUNIXProcess_md.c203 struct sigaction sa; in setSIGCHLDHandler() local
204 sa.sa_handler = SIG_DFL; in setSIGCHLDHandler()
205 sigemptyset(&sa.sa_mask); in setSIGCHLDHandler()
206 sa.sa_flags = SA_NOCLDSTOP | SA_RESTART; in setSIGCHLDHandler()
207 if (sigaction(SIGCHLD, &sa, NULL) < 0) in setSIGCHLDHandler()
Dnet_util_md.c330 SOCKADDR sa; in IPv6_supported() local
331 socklen_t sa_len = sizeof(sa); in IPv6_supported()
1270 struct sockaddr_in *sa = (struct sockaddr_in *)him; in NET_Bind() local
1271 if ((ntohl(sa->sin_addr.s_addr) & 0x7f0000ff) == 0x7f0000ff) { in NET_Bind()
/libcore/luni/src/test/java/libcore/android/system/
DUnixSocketAddressTest.java30 UnixSocketAddress sa = UnixSocketAddress.createFileSystem(path); in testFilesystemSunPath() local
36 assertTrue(Arrays.equals(expected, sa.getSunPath())); in testFilesystemSunPath()
40 UnixSocketAddress sa = UnixSocketAddress.createUnnamed(); in testUnnamedSunPath() local
41 assertEquals(0, sa.getSunPath().length); in testUnnamedSunPath()
46 UnixSocketAddress sa = UnixSocketAddress.createAbstract(abstractName); in testAbstractSunPath() local
51 assertTrue(Arrays.equals(expected, sa.getSunPath())); in testAbstractSunPath()
/libcore/luni/src/main/native/
DAsynchronousCloseMonitor.cpp81 struct sigaction sa; in init() local
82 memset(&sa, 0, sizeof(sa)); in init()
83 sa.sa_handler = blockedThreadSignalHandler; in init()
84 sa.sa_flags = 0; in init()
85 int rc = sigaction(BLOCKED_THREAD_SIGNAL, &sa, NULL); in init()
Dlibcore_io_Linux.cpp109 static bool isIPv4MappedAddress(const sockaddr *sa) { in isIPv4MappedAddress() argument
110 const sockaddr_in6 *sin6 = reinterpret_cast<const sockaddr_in6*>(sa); in isIPv4MappedAddress()
111 return sa != NULL && sa->sa_family == AF_INET6 && in isIPv4MappedAddress()
823 sockaddr* sa = reinterpret_cast<sockaddr*>(&ss); in doGetSockName() local
826 int rc = is_sockname ? TEMP_FAILURE_RETRY(getsockname(fd, sa, &byteCount)) in doGetSockName()
827 : TEMP_FAILURE_RETRY(getpeername(fd, sa, &byteCount)); in doGetSockName()
1067 const sockaddr* sa = reinterpret_cast<const sockaddr*>(&ss); in Linux_bindSocketAddress() local
1069 (void) NET_FAILURE_RETRY(env, int, bind, javaFd, sa, sa_len); in Linux_bindSocketAddress()
1252 const sockaddr* sa = reinterpret_cast<const sockaddr*>(&ss); in Linux_connectSocketAddress() local
1254 (void) NET_FAILURE_RETRY(env, int, connect, javaFd, sa, sa_len); in Linux_connectSocketAddress()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/net/
DProxy.java38 public Proxy(java.net.Proxy.Type type, java.net.SocketAddress sa) { in Proxy() argument
68 private java.net.SocketAddress sa; field in Proxy
/libcore/ojluni/src/main/java/sun/nio/ch/
DNet.java96 public static InetSocketAddress checkAddress(SocketAddress sa) { in checkAddress() argument
97 if (sa == null) in checkAddress()
103 if (!(sa instanceof InetSocketAddress)) in checkAddress()
105 InetSocketAddress isa = (InetSocketAddress)sa; in checkAddress()
114 static InetSocketAddress asInetSocketAddress(SocketAddress sa) { in asInetSocketAddress() argument
115 if (!(sa instanceof InetSocketAddress)) in asInetSocketAddress()
117 return (InetSocketAddress)sa; in asInetSocketAddress()
DSocketChannelImpl.java657 public boolean connect(SocketAddress sa) throws IOException { in connect() argument
663 InetSocketAddress isa = Net.checkAddress(sa); in connect()
DDatagramChannelImpl.java759 public DatagramChannel connect(SocketAddress sa) throws IOException { in connect() argument
766 InetSocketAddress isa = Net.checkAddress(sa); in connect()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DProxySelectorTest.java471 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/ojluni/src/main/java/java/lang/
DPackage.java236 String [] sa = specVersion.split("\\.", -1); in isCompatibleWith() local
237 int [] si = new int[sa.length]; in isCompatibleWith()
238 for (int i = 0; i < sa.length; i++) { in isCompatibleWith()
239 si[i] = Integer.parseInt(sa[i]); in isCompatibleWith()
/libcore/luni/src/test/java/libcore/java/util/
DSpliteratorTester.java206 Spliterator<T> sa = spliterable.spliterator(); in runOrderedTests() local
208 Spliterator<T> saSplit = sa.trySplit(); in runOrderedTests()
222 assertEquals(toList(sa), toList(sb)); in runOrderedTests()
224 assertEquals(elements, toList(sa)); in runOrderedTests()
/libcore/ojluni/src/test/java/util/List/
DListFactories.java63 String[] sa = new String[NUM_STRINGS];
65 sa[i] = String.valueOf((char)('a' + i));
67 stringArray = sa;
/libcore/ojluni/src/main/java/sun/net/spi/
DDefaultProxySelector.java337 public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { in connectFailed() argument
338 if (uri == null || sa == null || ioe == null) { in connectFailed()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
DHttpURLConnectionTest.java153 public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { in connectFailed() argument
/libcore/ojluni/src/main/java/java/io/
DObjectOutputStream.java1404 short[] sa = (short[]) array; in writeArray() local
1405 bout.writeInt(sa.length); in writeArray()
1406 bout.writeShorts(sa, 0, sa.length); in writeArray()
/libcore/luni/src/test/java/libcore/java/net/
DFtpURLConnectionTest.java346 public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { in connectFailed() argument
DSocketTest.java455 public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { in testSocketWithProxySet()
DOldURLTest.java573 public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { in connectFailed() argument

12