/libcore/luni/src/main/native/ |
D | NetworkUtilities.cpp | 93 …dr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len, bool map) { in inetAddressToSockaddr() argument 95 sa_len = 0; in inetAddressToSockaddr() 115 sa_len = sizeof(ss.ss_family); in inetAddressToSockaddr() 165 sa_len = sizeof(sockaddr_in6); in inetAddressToSockaddr() 182 sa_len = sizeof(sockaddr_in6); in inetAddressToSockaddr() 189 sa_len = sizeof(sockaddr_in); in inetAddressToSockaddr() 194 …addrVerbatim(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) { in inetAddressToSockaddrVerbatim() argument 195 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, false); in inetAddressToSockaddrVerbatim() 198 …ssToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) { in inetAddressToSockaddr() argument 199 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, true); in inetAddressToSockaddr()
|
D | NetworkUtilities.h | 30 sockaddr_storage& ss, socklen_t& sa_len); 39 sockaddr_storage& ss, socklen_t& sa_len);
|
D | libcore_io_Linux.cpp | 372 const socklen_t& sa_len) { in getUnixSocketPath() argument 383 size_t pathLength = sa_len - offsetof(struct sockaddr_un, sun_path); in getUnixSocketPath() 397 static jobject makeSocketAddress(JNIEnv* env, const sockaddr_storage& ss, const socklen_t sa_len) { in makeSocketAddress() argument 416 jbyteArray javaSunPath = getUnixSocketPath(env, ss, sa_len); in makeSocketAddress() 582 const sockaddr_storage& ss, const socklen_t& sa_len) { in fillUnixSocketAddress() argument 586 jbyteArray javaSunPath = getUnixSocketPath(env, ss, sa_len); in fillUnixSocketAddress() 621 const socklen_t& sa_len) { in fillSocketAddress() argument 629 return fillUnixSocketAddress(env, javaSocketAddress, ss, sa_len); in fillSocketAddress() 652 JNIEnv* env, jobject javaSocketAddress, sockaddr_storage& ss, socklen_t& sa_len) { in javaInetSocketAddressToSockaddr() argument 656 return inetAddressToSockaddr(env, javaInetAddress, port, ss, sa_len); in javaInetSocketAddressToSockaddr() [all …]
|
/libcore/ojluni/src/main/native/ |
D | DatagramChannelImpl.c | 159 socklen_t sa_len = SOCKADDR_LEN; 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() 249 int sa_len = SOCKADDR_LEN; in Java_sun_nio_ch_DatagramChannelImpl_send0() local 258 &sa_len, preferIPv6) != 0) { in Java_sun_nio_ch_DatagramChannelImpl_send0() 262 n = sendto(fd, buf, len, 0, (struct sockaddr *)&sa, sa_len); in Java_sun_nio_ch_DatagramChannelImpl_send0()
|
D | Net.c | 319 int sa_len = SOCKADDR_LEN; 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() 344 int sa_len = SOCKADDR_LEN; in Java_sun_nio_ch_Net_connect0() local 348 &sa_len, preferIPv6) != 0) 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() 369 socklen_t sa_len = SOCKADDR_LEN; 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() 409 socklen_t sa_len = SOCKADDR_LEN; in Java_sun_nio_ch_Net_localInetAddress() local 411 if (getsockname(fdval(env, fdo), (struct sockaddr *)&sa, &sa_len) < 0) { in Java_sun_nio_ch_Net_localInetAddress()
|
D | ServerSocketChannelImpl.c | 107 socklen_t sa_len = alloc_len; in Java_sun_nio_ch_ServerSocketChannelImpl_accept0() local 108 newfd = accept(ssfd, sa, &sa_len); in Java_sun_nio_ch_ServerSocketChannelImpl_accept0()
|
D | net_util_md.c | 331 socklen_t sa_len = sizeof(sa); in IPv6_supported() local
|