Home
last modified time | relevance | path

Searched refs:host_str (Results 1 – 3 of 3) sorted by relevance

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_tls_frontend.cpp54 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()
115 std::string host_str = addr2str(ai->ai_addr, ai->ai_addrlen); in startServer() local
117 PLOG(INFO) << "failed to bind TCP " << host_str.c_str() << ":" in startServer()
121 LOG(INFO) << "bound to TCP " << host_str.c_str() << ":" << listen_service_.c_str(); in startServer()
Ddns_responder.cpp62 char host_str[NI_MAXHOST] = {0}; in addr2str() local
63 int rv = getnameinfo(sa, sa_len, host_str, sizeof(host_str), nullptr, 0, NI_NUMERICHOST); in addr2str()
64 if (rv == 0) return std::string(host_str); in addr2str()
1177 const std::string host_str = addr2str(reinterpret_cast<const sockaddr*>(&sa), sa_len); in handleQuery() local
1179 LOG(DEBUG) << "sent " << len << " bytes to " << host_str; in handleQuery()
1182 LOG(ERROR) << method_str << " failed for " << host_str; in handleQuery()
1238 const std::string host_str = addr2str(ai->ai_addr, ai->ai_addrlen); in createListeningSocket() local
1247 mreq.imr_interface.s_addr = inet_addr(host_str.c_str()); in createListeningSocket()
1286 LOG(ERROR) << "failed to bind " << socket_str << " " << host_str << ":" in createListeningSocket()
1290 LOG(INFO) << "bound to " << socket_str << " " << host_str << ":" << listen_service_; in createListeningSocket()
/packages/modules/DnsResolver/doh/
Dencoding.rs72 url.host_str().ok_or_else(|| anyhow!("failed to get host"))?.as_bytes(), in dns_request()
104 assert_eq!(request[2].value(), url.host_str().unwrap().as_bytes()); in make_probe_query_and_request()