Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_tls_frontend.cpp53 char host_str[NI_MAXHOST] = {0}; in addr2str() local
54 int rv = getnameinfo(sa, sa_len, host_str, sizeof(host_str), nullptr, 0, NI_NUMERICHOST); in addr2str()
55 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()
Ddns_responder.cpp68 char host_str[NI_MAXHOST] = {0}; in addr2str() local
69 int rv = getnameinfo(sa, sa_len, host_str, sizeof(host_str), nullptr, 0, NI_NUMERICHOST); in addr2str()
70 if (rv == 0) return std::string(host_str); in addr2str()
1144 const std::string host_str = addr2str(reinterpret_cast<const sockaddr*>(&sa), sa_len); in handleQuery() local
1146 LOG(DEBUG) << "sent " << len << " bytes to " << host_str; in handleQuery()
1149 LOG(ERROR) << method_str << " failed for " << host_str; in handleQuery()
1206 const std::string host_str = addr2str(ai->ai_addr, ai->ai_addrlen); in createListeningSocket() local
1210 PLOG(ERROR) << "failed to bind " << socket_str << " " << host_str << ":" in createListeningSocket()
1214 LOG(INFO) << "bound to " << socket_str << " " << host_str << ":" << listen_service_; in createListeningSocket()