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

/system/netd/server/
H A DDnsProxyListener.cpp120 static bool sendLenAndData(SocketClient* c, const int len, const void* data) { function
129 success &= sendLenAndData(c, strlen(hp->h_name)+1, hp->h_name);
131 success &= sendLenAndData(c, 0, "") == 0;
135 success &= sendLenAndData(c, strlen(hp->h_aliases[i])+1, hp->h_aliases[i]);
137 success &= sendLenAndData(c, 0, ""); // null to indicate we're done
146 success &= sendLenAndData(c, 16, hp->h_addr_list[i]);
148 success &= sendLenAndData(c, 0, ""); // null to indicate we're done
176 if (!sendLenAndData(c, ai->ai_addrlen, ai->ai_addr)) {
181 if (!sendLenAndData(c, ai->ai_canonname ? strlen(ai->ai_canonname) + 1 : 0, ai->ai_canonname)) {

Completed in 1169 milliseconds