Searched refs:host_str (Results 1 – 3 of 3) sorted by relevance
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_tls_frontend.cpp | 54 char host_str[NI_MAXHOST] = {0}; in addr2str() local 55 int rv = getnameinfo(sa, sa_len, host_str, sizeof(host_str), nullptr, 0, NI_NUMERICHOST); in addr2str() 56 if (rv == 0) return std::string(host_str); in addr2str() 119 std::string host_str = addr2str(ai->ai_addr, ai->ai_addrlen); in startServer() local 121 PLOG(INFO) << "failed to bind TCP " << host_str.c_str() << ":" in startServer() 125 LOG(INFO) << "bound to TCP " << host_str.c_str() << ":" << listen_service_.c_str(); in startServer()
|
D | dns_responder.cpp | 71 char host_str[NI_MAXHOST] = {0}; in addr2str() local 72 int rv = getnameinfo(sa, sa_len, host_str, sizeof(host_str), nullptr, 0, NI_NUMERICHOST); in addr2str() 73 if (rv == 0) return std::string(host_str); in addr2str() 1174 const std::string host_str = addr2str(reinterpret_cast<const sockaddr*>(&sa), sa_len); in handleQuery() local 1176 LOG(DEBUG) << "sent " << len << " bytes to " << host_str; in handleQuery() 1179 LOG(ERROR) << method_str << " failed for " << host_str; in handleQuery() 1236 const std::string host_str = addr2str(ai->ai_addr, ai->ai_addrlen); in createListeningSocket() local 1240 PLOG(ERROR) << "failed to bind " << socket_str << " " << host_str << ":" in createListeningSocket() 1244 LOG(INFO) << "bound to " << socket_str << " " << host_str << ":" << listen_service_; in createListeningSocket()
|
/packages/modules/DnsResolver/ |
D | doh.rs | 271 url.host_str().ok_or_else(|| anyhow!("failed to get host"))?, in send_dns_query()
|