|
Squid Web Cache master
|
encapsulates DNS lookup results More...
#include <LookupDetails.h>
Public Member Functions | |
| LookupDetails () | |
| no lookup attempt: no error and no lookup delay | |
| LookupDetails (const SBuf &anError, const int aWait) | |
| std::ostream & | print (std::ostream &os) const |
Public Attributes | |
| const std::optional< SBuf > | error |
| error message (if any) | |
| int | wait |
| msecs spent waiting for the lookup (if any) or -1 (if none) | |
Definition at line 22 of file LookupDetails.h.
|
inline |
Definition at line 26 of file LookupDetails.h.
details a possible lookup attempt
| anError | either a failed attempt error message or an empty string |
| aWait | msecs spent waiting for the lookup (if any) or -1 (if none) |
Definition at line 31 of file LookupDetails.h.
| std::ostream & Dns::LookupDetails::print | ( | std::ostream & | os | ) | const |
Definition at line 15 of file LookupDetails.cc.
Referenced by Dns::operator<<().
| const std::optional<SBuf> Dns::LookupDetails::error |
Definition at line 39 of file LookupDetails.h.
Referenced by PeerSelector::noteIps(), and print().
| int Dns::LookupDetails::wait |
Definition at line 40 of file LookupDetails.h.
Referenced by print(), and HttpRequest::recordLookup().