Searched refs:sendLenAndData (Results 1 – 1 of 1) sorted by relevance
/packages/modules/DnsResolver/ |
D | DnsProxyListener.cpp | 795 static bool sendLenAndData(SocketClient* c, const int len, const void* data) { in sendLenAndData() function 805 success &= sendLenAndData(c, strlen(h_name) + 1, hp->h_name); in sendhostent() 807 success &= sendLenAndData(c, 0, "") == 0; in sendhostent() 812 success &= sendLenAndData(c, strlen(h_aliases) + 1, hp->h_aliases[i]); in sendhostent() 814 success &= sendLenAndData(c, 0, ""); // null to indicate we're done in sendhostent() 823 success &= sendLenAndData(c, 16, hp->h_addr_list[i]); in sendhostent() 825 success &= sendLenAndData(c, 0, ""); // null to indicate we're done in sendhostent() 850 if (!sendLenAndData(c, ai->ai_addrlen, ai->ai_addr)) { in sendaddrinfo() 860 if (!sendLenAndData(c, len, ai->ai_canonname)) { in sendaddrinfo() 1183 if (!sendLenAndData(mClient, ansLen, ansBuf.data())) { in run()
|