Lines Matching full:c_str
45 #define APLOGI(fmt, ...) ALOGI(fmt ": [%d] %s", __VA_ARGS__, errno, errno2str().c_str())
153 return name.c_str();
181 name.substr(pos, dot_pos - pos).c_str(), len);
537 "address %s", name, dnstype2str(type), it->second.c_str(),
577 int rv = getaddrinfo(listen_address_.c_str(), listen_service_.c_str(),
580 ALOGI("getaddrinfo(%s, %s) failed: %s", listen_address_.c_str(),
581 listen_service_.c_str(), gai_strerror(rv));
597 ALOGI("bound to UDP %s:%s", host_str.c_str(), listen_service_.c_str());
706 ALOGI("sent %zu bytes to %s", len, host_str.c_str());
708 APLOGI("sendto() failed for %s", host_str.c_str());
725 ALOGI("request: '%s'", str2hex(buffer, len).c_str());
796 question.qname.name.c_str(), dnstype2str(question.qtype));
799 ALOGI("mapping found for %s %s: %s", question.qname.name.c_str(),
800 dnstype2str(question.qtype), it->second.c_str());
808 if (inet_pton(AF_INET, it->second.c_str(), record.rdata.data()) != 1) {
809 ALOGI("inet_pton(AF_INET, %s) failed", it->second.c_str());
814 if (inet_pton(AF_INET6, it->second.c_str(), record.rdata.data()) != 1) {
815 ALOGI("inet_pton(AF_INET6, %s) failed", it->second.c_str());