]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/DnsLookupDetails.h
2 * DEBUG: section 78 DNS lookups
5 #ifndef SQUID_DNS_LOOKUP_DETAILS_H
6 #define SQUID_DNS_LOOKUP_DETAILS_H
8 #include "SquidString.h"
10 /// encapsulates DNS lookup results
11 class DnsLookupDetails
14 DnsLookupDetails(); ///< no error, no lookup delay (i.e., no lookup)
15 DnsLookupDetails(const String
&error
, int wait
);
17 std::ostream
&print(std::ostream
&os
) const;
20 String error
; ///< error message for unsuccessdul lookups; empty otherwise
21 int wait
; ///< msecs spent waiting for the lookup (if any) or -1 (if none)
25 std::ostream
&operator << (std::ostream
&os
, const DnsLookupDetails
&dns
)