]> git.ipfire.org Git - thirdparty/squid.git/blob - src/DnsLookupDetails.cc
Boilerplate: update copyright blurbs on src/
[thirdparty/squid.git] / src / DnsLookupDetails.cc
1 /*
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
3 *
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.
7 */
8
9 /* DEBUG: section 78 DNS lookups */
10
11 #include "squid.h"
12 #include "DnsLookupDetails.h"
13
14 DnsLookupDetails::DnsLookupDetails(): wait(-1)
15 {
16 }
17
18 DnsLookupDetails::DnsLookupDetails(const String &e, int w):
19 error(e), wait(w)
20 {
21 }
22
23 std::ostream &
24 DnsLookupDetails::print(std::ostream &os) const
25 {
26 if (wait > 0)
27 os << "lookup_wait=" << wait;
28 if (error.size())
29 os << " lookup_err=" << error;
30 return os;
31 }