LookupDetails.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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 "dns/LookupDetails.h"
13 
14 std::ostream &
15 Dns::LookupDetails::print(std::ostream &os) const
16 {
17  if (wait > 0)
18  os << "lookup_wait=" << wait;
19  if (error.size())
20  os << " lookup_err=" << error;
21  return os;
22 }
23 
int wait
msecs spent waiting for the lookup (if any) or -1 (if none)
Definition: LookupDetails.h:30
String error
error message for unsuccessful lookups; empty otherwise
Definition: LookupDetails.h:29
std::ostream & print(std::ostream &os) const
size_type size() const
Definition: SquidString.h:72

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors