Searched refs:sendLenAndData (Results 1 – 1 of 1) sorted by relevance
/system/netd/server/ |
D | DnsProxyListener.cpp | 171 static bool sendLenAndData(SocketClient* c, const int len, const void* data) { in sendLenAndData() function 180 success &= sendLenAndData(c, strlen(hp->h_name)+1, hp->h_name); in sendhostent() 182 success &= sendLenAndData(c, 0, "") == 0; in sendhostent() 186 success &= sendLenAndData(c, strlen(hp->h_aliases[i])+1, hp->h_aliases[i]); in sendhostent() 188 success &= sendLenAndData(c, 0, ""); // null to indicate we're done in sendhostent() 197 success &= sendLenAndData(c, 16, hp->h_addr_list[i]); in sendhostent() 199 success &= sendLenAndData(c, 0, ""); // null to indicate we're done in sendhostent() 227 if (!sendLenAndData(c, ai->ai_addrlen, ai->ai_addr)) { in sendaddrinfo() 232 if (!sendLenAndData(c, ai->ai_canonname ? strlen(ai->ai_canonname) + 1 : 0, ai->ai_canonname)) { in sendaddrinfo()
|