Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
DDnsProxyListener.cpp611 static bool sendLenAndData(SocketClient* c, const int len, const void* data) { in sendLenAndData() function
620 success &= sendLenAndData(c, strlen(hp->h_name) + 1, hp->h_name); in sendhostent()
622 success &= sendLenAndData(c, 0, "") == 0; in sendhostent()
626 success &= sendLenAndData(c, strlen(hp->h_aliases[i]) + 1, hp->h_aliases[i]); in sendhostent()
628 success &= sendLenAndData(c, 0, ""); // null to indicate we're done in sendhostent()
637 success &= sendLenAndData(c, 16, hp->h_addr_list[i]); in sendhostent()
639 success &= sendLenAndData(c, 0, ""); // null to indicate we're done in sendhostent()
664 if (!sendLenAndData(c, ai->ai_addrlen, ai->ai_addr)) { in sendaddrinfo()
669 if (!sendLenAndData(c, ai->ai_canonname ? strlen(ai->ai_canonname) + 1 : 0, ai->ai_canonname)) { in sendaddrinfo()
980 !sendLenAndData(mClient, nsendAns, ansBuf.data())) { in run()