Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/native/
DUnixDomainSockets.c117 int sa_len = 0; in Java_sun_nio_ch_UnixDomainSockets_bind0() local
120 if (unixSocketAddressToSockaddr(env, path, &sa, &sa_len) != 0) in Java_sun_nio_ch_UnixDomainSockets_bind0()
123 rv = bind(fdval(env, fdo), (struct sockaddr *)&sa, sa_len); in Java_sun_nio_ch_UnixDomainSockets_bind0()
133 int sa_len = 0; in Java_sun_nio_ch_UnixDomainSockets_connect0() local
136 if (unixSocketAddressToSockaddr(env, path, &sa, &sa_len) != 0) { in Java_sun_nio_ch_UnixDomainSockets_connect0()
140 rv = connect(fdval(env, fdo), (struct sockaddr *)&sa, sa_len); in Java_sun_nio_ch_UnixDomainSockets_connect0()
159 socklen_t sa_len = sizeof(struct sockaddr_un); in Java_sun_nio_ch_UnixDomainSockets_accept0() local
162 newfd = accept(fd, (struct sockaddr *)&sa, &sa_len); in Java_sun_nio_ch_UnixDomainSockets_accept0()
174 address = sockaddrToUnixAddressBytes(env, &sa, sa_len); in Java_sun_nio_ch_UnixDomainSockets_accept0()
186 socklen_t sa_len = sizeof(struct sockaddr_un); in Java_sun_nio_ch_UnixDomainSockets_localAddress0() local
[all …]
DDatagramChannelImpl.c159 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()
DNet.c315 int sa_len = SOCKADDR_LEN; in Java_sun_nio_ch_Net_bind0() local
318 … if (NET_InetAddressToSockaddr(env, iao, port, (struct sockaddr *)&sa, &sa_len, preferIPv6) != 0) { in Java_sun_nio_ch_Net_bind0()
322 rv = NET_Bind(fdval(env, fdo), (struct sockaddr *)&sa, sa_len); in Java_sun_nio_ch_Net_bind0()
340 int sa_len = SOCKADDR_LEN; in Java_sun_nio_ch_Net_connect0() local
344 &sa_len, preferIPv6) != 0) in Java_sun_nio_ch_Net_connect0()
349 rv = connect(fdval(env, fdo), (struct sockaddr *)&sa, sa_len); in Java_sun_nio_ch_Net_connect0()
365 socklen_t sa_len = SOCKADDR_LEN; in Java_sun_nio_ch_Net_localPort() local
366 if (getsockname(fdval(env, fdo), (struct sockaddr *)&sa, &sa_len) < 0) { in Java_sun_nio_ch_Net_localPort()
405 socklen_t sa_len = SOCKADDR_LEN; in Java_sun_nio_ch_Net_localInetAddress() local
407 if (getsockname(fdval(env, fdo), (struct sockaddr *)&sa, &sa_len) < 0) { in Java_sun_nio_ch_Net_localInetAddress()
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_util_md.c331 socklen_t sa_len = sizeof(sa); in IPv6_supported() local
/libcore/luni/src/main/native/
DScopedMsghdr.h43 void setMsgNameAndLen(sockaddr* ss, socklen_t sa_len) { in setMsgNameAndLen() argument
45 mMsghdrValue.msg_namelen = sa_len; in setMsgNameAndLen()
DNetworkUtilities.h31 sockaddr_storage& ss, socklen_t& sa_len);
40 sockaddr_storage& ss, socklen_t& sa_len);
DNetworkUtilities.cpp105 …dr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len, bool map) { in inetAddressToSockaddr() argument
107 sa_len = 0; in inetAddressToSockaddr()
127 sa_len = sizeof(ss.ss_family); in inetAddressToSockaddr()
177 sa_len = sizeof(sockaddr_in6); in inetAddressToSockaddr()
194 sa_len = sizeof(sockaddr_in6); in inetAddressToSockaddr()
201 sa_len = sizeof(sockaddr_in); in inetAddressToSockaddr()
206 …addrVerbatim(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) { in inetAddressToSockaddrVerbatim() argument
207 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, false); in inetAddressToSockaddrVerbatim()
210 …ssToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) { in inetAddressToSockaddr() argument
211 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, true); in inetAddressToSockaddr()
Dlibcore_io_Linux.cpp372 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()
645 const socklen_t& sa_len) { in fillSocketAddress() argument
653 return fillUnixSocketAddress(env, javaSocketAddress, ss, sa_len); in fillSocketAddress()
680 JNIEnv* env, jobject javaSocketAddress, sockaddr_storage& ss, socklen_t& sa_len) { in javaInetSocketAddressToSockaddr() argument
684 return inetAddressToSockaddr(env, javaInetAddress, port, ss, sa_len); in javaInetSocketAddressToSockaddr()
[all …]