]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/DnsLookupDetails.h
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 /* DEBUG: section 78 DNS lookups */
11 #ifndef SQUID_DNS_LOOKUP_DETAILS_H
12 #define SQUID_DNS_LOOKUP_DETAILS_H
14 #include "SquidString.h"
16 /// encapsulates DNS lookup results
17 class DnsLookupDetails
20 DnsLookupDetails(); ///< no error, no lookup delay (i.e., no lookup)
21 DnsLookupDetails(const String
&error
, int wait
);
23 std::ostream
&print(std::ostream
&os
) const;
26 String error
; ///< error message for unsuccessdul lookups; empty otherwise
27 int wait
; ///< msecs spent waiting for the lookup (if any) or -1 (if none)
31 std::ostream
&operator << (std::ostream
&os
, const DnsLookupDetails
&dns
)