Lines Matching refs:ss
219 static jobject makeSocketAddress(JNIEnv* env, const sockaddr_storage* ss) {
222 jobject inetAddress = sockaddrToInetAddress(env, ss, &port);
302 static bool fillInetSocketAddress(JNIEnv* env, jint rc, jobject javaInetSocketAddress, const sockaddr_storage* ss) {
308 jobject sender = sockaddrToInetAddress(env, ss, &port);
376 sockaddr_storage ss;
377 socklen_t sl = sizeof(ss);
378 memset(&ss, 0, sizeof(ss));
380 sockaddr* peer = (javaInetSocketAddress != NULL) ? reinterpret_cast<sockaddr*>(&ss) : NULL;
383 if (clientFd == -1 || !fillInetSocketAddress(env, clientFd, javaInetSocketAddress, &ss)) {
403 sockaddr_storage ss;
404 if (!inetAddressToSockaddr(env, javaAddress, port, &ss)) {
408 const sockaddr* sa = reinterpret_cast<const sockaddr*>(&ss);
433 sockaddr_storage ss;
434 if (!inetAddressToSockaddr(env, javaAddress, port, &ss)) {
438 const sockaddr* sa = reinterpret_cast<const sockaddr*>(&ss);
624 sockaddr_storage ss;
625 if (!inetAddressToSockaddrVerbatim(env, javaAddress, 0, &ss)) {
632 socklen_t size = (ss.ss_family == AF_INET) ? sizeof(sockaddr_in) : sizeof(sockaddr_in6);
634 int rc = getnameinfo(reinterpret_cast<sockaddr*>(&ss), size, buf, sizeof(buf), NULL, 0, flags);
664 sockaddr_storage ss;
665 sockaddr* sa = reinterpret_cast<sockaddr*>(&ss);
666 socklen_t byteCount = sizeof(ss);
667 memset(&ss, 0, byteCount);
673 return makeSocketAddress(env, &ss);
686 sockaddr_storage ss;
687 memset(&ss, 0, sizeof(ss));
688 ss.ss_family = AF_INET; // This is only for the IPv4-only IP_MULTICAST_IF.
689 sockaddr_in* sa = reinterpret_cast<sockaddr_in*>(&ss);
696 return sockaddrToInetAddress(env, &ss, NULL);
750 sockaddr_storage ss;
751 memset(&ss, 0, sizeof(ss));
753 void* dst = &reinterpret_cast<sockaddr_in*>(&ss)->sin_addr;
757 ss.ss_family = family;
758 return sockaddrToInetAddress(env, &ss, NULL);
969 sockaddr_storage ss;
970 socklen_t sl = sizeof(ss);
971 memset(&ss, 0, sizeof(ss));
973 sockaddr* from = (javaInetSocketAddress != NULL) ? reinterpret_cast<sockaddr*>(&ss) : NULL;
976 fillInetSocketAddress(env, recvCount, javaInetSocketAddress, &ss);
1023 sockaddr_storage ss;
1024 if (javaInetAddress != NULL && !inetAddressToSockaddr(env, javaInetAddress, port, &ss)) {
1028 const sockaddr* to = (javaInetAddress != NULL) ? reinterpret_cast<const sockaddr*>(&ss) : NULL;
1029 socklen_t toLength = (javaInetAddress != NULL) ? sizeof(ss) : 0;