Dns::LookupDetails Class Reference
encapsulates DNS lookup results More...
#include <LookupDetails.h>
Collaboration diagram for Dns::LookupDetails:
Public Member Functions | |
LookupDetails () | |
no lookup attempt: no error and no lookup delay More... | |
LookupDetails (const SBuf &anError, const int aWait) | |
msecs spent waiting for the lookup (if any) or -1 (if none) More... | |
std::ostream & | print (std::ostream &os) const |
Public Attributes | |
const std::optional< SBuf > | error |
error message (if any) More... | |
int | wait |
msecs spent waiting for the lookup (if any) or -1 (if none) More... | |
Detailed Description
Definition at line 22 of file LookupDetails.h.
Constructor & Destructor Documentation
◆ LookupDetails() [1/2]
|
inline |
Definition at line 26 of file LookupDetails.h.
◆ LookupDetails() [2/2]
details a possible lookup attempt
- Parameters
-
anError either a failed attempt error message or an empty string aWait
Definition at line 31 of file LookupDetails.h.
Member Function Documentation
◆ print()
std::ostream & Dns::LookupDetails::print | ( | std::ostream & | os | ) | const |
Definition at line 15 of file LookupDetails.cc.
Referenced by Dns::operator<<().
Member Data Documentation
◆ error
const std::optional<SBuf> Dns::LookupDetails::error |
Definition at line 39 of file LookupDetails.h.
Referenced by PeerSelector::noteIps(), and print().
◆ wait
int Dns::LookupDetails::wait |
Definition at line 40 of file LookupDetails.h.
Referenced by print(), and HttpRequest::recordLookup().
The documentation for this class was generated from the following files:
- src/dns/LookupDetails.h
- src/dns/LookupDetails.cc
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products