]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/dns/LookupDetails.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_LOOKUPDETAILS_H
12 #define SQUID_DNS_LOOKUPDETAILS_H
14 #include "SquidString.h"
19 /// encapsulates DNS lookup results
23 LookupDetails() : wait(-1) {} ///< no error, no lookup delay (i.e., no lookup)
24 LookupDetails(const String
&anError
, int aWait
) : error(anError
), wait(aWait
) {}
26 std::ostream
&print(std::ostream
&os
) const;
29 String error
; ///< error message for unsuccessful lookups; empty otherwise
30 int wait
; ///< msecs spent waiting for the lookup (if any) or -1 (if none)
36 operator <<(std::ostream
&os
, const Dns::LookupDetails
&dns
)
41 #endif /* SQUID_DNS_LOOKUPDETAILS_H */