Home
last modified time | relevance | path

Searched refs:sa_len (Results 1 – 7 of 7) sorted by relevance

/libcore/luni/src/main/native/
DNetworkUtilities.cpp91 …dr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len, bool map) { in inetAddressToSockaddr() argument
93 sa_len = 0; in inetAddressToSockaddr()
107 sa_len = sizeof(ss.ss_family); in inetAddressToSockaddr()
149 sa_len = sizeof(sockaddr_in6); in inetAddressToSockaddr()
166 sa_len = sizeof(sockaddr_in6); in inetAddressToSockaddr()
173 sa_len = sizeof(sockaddr_in); in inetAddressToSockaddr()
178 …addrVerbatim(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) { in inetAddressToSockaddrVerbatim() argument
179 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, false); in inetAddressToSockaddrVerbatim()
182 …ssToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) { in inetAddressToSockaddr() argument
183 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, true); in inetAddressToSockaddr()
DNetworkUtilities.h30 sockaddr_storage& ss, socklen_t& sa_len);
39 sockaddr_storage& ss, socklen_t& sa_len);
Dlibcore_io_Linux.cpp342 const socklen_t& sa_len) { in getUnixSocketPath() argument
353 size_t pathLength = sa_len - offsetof(struct sockaddr_un, sun_path); in getUnixSocketPath()
367 static jobject makeSocketAddress(JNIEnv* env, const sockaddr_storage& ss, const socklen_t sa_len) { in makeSocketAddress() argument
381 jbyteArray javaSunPath = getUnixSocketPath(env, ss, sa_len); in makeSocketAddress()
496 const sockaddr_storage& ss, const socklen_t& sa_len) { in fillUnixSocketAddress() argument
500 jbyteArray javaSunPath = getUnixSocketPath(env, ss, sa_len); in fillUnixSocketAddress()
535 const socklen_t& sa_len) { in fillSocketAddress() argument
543 return fillUnixSocketAddress(env, javaSocketAddress, ss, sa_len); in fillSocketAddress()
566 JNIEnv* env, jobject javaSocketAddress, sockaddr_storage& ss, socklen_t& sa_len) { in javaInetSocketAddressToSockaddr() argument
570 return inetAddressToSockaddr(env, javaInetAddress, port, ss, sa_len); in javaInetSocketAddressToSockaddr()
[all …]
/libcore/ojluni/src/main/native/
DDatagramChannelImpl.c157 socklen_t sa_len = SOCKADDR_LEN; in Java_sun_nio_ch_DatagramChannelImpl_receive0() local
166 memset(&sa, 0, sa_len); in Java_sun_nio_ch_DatagramChannelImpl_receive0()
170 n = recvfrom(fd, buf, len, 0, (struct sockaddr *)&sa, &sa_len); in Java_sun_nio_ch_DatagramChannelImpl_receive0()
247 int sa_len = SOCKADDR_LEN; in Java_sun_nio_ch_DatagramChannelImpl_send0() local
256 &sa_len, preferIPv6) != 0) { in Java_sun_nio_ch_DatagramChannelImpl_send0()
260 n = sendto(fd, buf, len, 0, (struct sockaddr *)&sa, sa_len); in Java_sun_nio_ch_DatagramChannelImpl_send0()
DServerSocketChannelImpl.c107 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()
DNet.c316 int sa_len = SOCKADDR_LEN; in Java_sun_nio_ch_Net_bind0() local
319 … if (NET_InetAddressToSockaddr(env, iao, port, (struct sockaddr *)&sa, &sa_len, preferIPv6) != 0) { in Java_sun_nio_ch_Net_bind0()
323 rv = NET_Bind(fdval(env, fdo), (struct sockaddr *)&sa, sa_len); in Java_sun_nio_ch_Net_bind0()
341 int sa_len = SOCKADDR_LEN; in Java_sun_nio_ch_Net_connect0() local
345 &sa_len, preferIPv6) != 0) in Java_sun_nio_ch_Net_connect0()
350 rv = connect(fdval(env, fdo), (struct sockaddr *)&sa, sa_len); in Java_sun_nio_ch_Net_connect0()
366 socklen_t sa_len = SOCKADDR_LEN; in Java_sun_nio_ch_Net_localPort() local
367 if (getsockname(fdval(env, fdo), (struct sockaddr *)&sa, &sa_len) < 0) { in Java_sun_nio_ch_Net_localPort()
400 socklen_t sa_len = SOCKADDR_LEN; in Java_sun_nio_ch_Net_localInetAddress() local
402 if (getsockname(fdval(env, fdo), (struct sockaddr *)&sa, &sa_len) < 0) { in Java_sun_nio_ch_Net_localInetAddress()
Dnet_util_md.c324 socklen_t sa_len = sizeof(sa); in IPv6_supported() local