Searched refs:sendLenAndData (Results 1 – 1 of 1) sorted by relevance
/system/netd/resolv/ |
D | DnsProxyListener.cpp | 525 static bool sendLenAndData(SocketClient* c, const int len, const void* data) { in sendLenAndData() function 534 success &= sendLenAndData(c, strlen(hp->h_name)+1, hp->h_name); in sendhostent() 536 success &= sendLenAndData(c, 0, "") == 0; in sendhostent() 540 success &= sendLenAndData(c, strlen(hp->h_aliases[i])+1, hp->h_aliases[i]); in sendhostent() 542 success &= sendLenAndData(c, 0, ""); // null to indicate we're done in sendhostent() 551 success &= sendLenAndData(c, 16, hp->h_addr_list[i]); in sendhostent() 553 success &= sendLenAndData(c, 0, ""); // null to indicate we're done in sendhostent() 581 if (!sendLenAndData(c, ai->ai_addrlen, ai->ai_addr)) { in sendaddrinfo() 586 if (!sendLenAndData(c, ai->ai_canonname ? strlen(ai->ai_canonname) + 1 : 0, ai->ai_canonname)) { in sendaddrinfo() 888 !sendLenAndData(mClient, nsendAns, ansBuf.data())) { in run()
|