![Collaboration graph](classfqdncache__entry__coll__graph.png)
Classes | |
struct | Flags |
Public Member Functions | |
fqdncache_entry (const char *name) | |
~fqdncache_entry () | |
int | age () const |
time passed since request_time or -1 if unknown More... | |
Public Attributes | |
hash_link | hash |
time_t | lastref |
time_t | expires |
unsigned char | name_count |
char * | names [FQDN_MAX_NAMES+1] |
FQDNH * | handler |
void * | handlerData |
char * | error_message |
struct timeval | request_time |
dlink_node | lru |
unsigned short | locks |
struct fqdncache_entry::Flags | flags |
Private Member Functions | |
MEMPROXY_CLASS (fqdncache_entry) | |
Detailed Description
The data structure used for storing name-address mappings is a small hashtable (static hash_table *fqdn_table), where structures of type fqdncache_entry whose most interesting members are:
Definition at line 79 of file fqdncache.cc.
Constructor & Destructor Documentation
◆ fqdncache_entry()
fqdncache_entry::fqdncache_entry | ( | const char * | name | ) |
Definition at line 253 of file fqdncache.cc.
References hash, hash_link::key, names, request_time, and xstrdup.
◆ ~fqdncache_entry()
fqdncache_entry::~fqdncache_entry | ( | ) |
Definition at line 603 of file fqdncache.cc.
References error_message, hash, int, hash_link::key, name_count, names, and xfree.
Member Function Documentation
◆ age()
int fqdncache_entry::age | ( | ) | const |
Definition at line 145 of file fqdncache.cc.
References current_time, request_time, and tvSubMsec().
Referenced by fqdncacheHandleReply().
◆ MEMPROXY_CLASS()
|
private |
Member Data Documentation
◆ error_message
char* fqdncache_entry::error_message |
Definition at line 94 of file fqdncache.cc.
Referenced by fqdncacheCallback(), fqdncacheParse(), and ~fqdncache_entry().
◆ expires
time_t fqdncache_entry::expires |
Definition at line 89 of file fqdncache.cc.
Referenced by fqdncacheExpiredEntry(), fqdncacheParse(), and fqdnStats().
◆ flags
struct fqdncache_entry::Flags fqdncache_entry::flags |
◆ handler
FQDNH* fqdncache_entry::handler |
Definition at line 92 of file fqdncache.cc.
Referenced by fqdncache_nbgethostbyaddr(), and fqdncacheCallback().
◆ handlerData
void* fqdncache_entry::handlerData |
Definition at line 93 of file fqdncache.cc.
Referenced by fqdncache_nbgethostbyaddr(), and fqdncacheCallback().
◆ hash
hash_link fqdncache_entry::hash |
Definition at line 87 of file fqdncache.cc.
Referenced by fqdncache_entry(), fqdncacheAddEntry(), fqdncacheParse(), fqdnStats(), and ~fqdncache_entry().
◆ lastref
time_t fqdncache_entry::lastref |
Definition at line 88 of file fqdncache.cc.
Referenced by fqdncache_gethostbyaddr(), fqdncacheAddEntry(), and fqdncacheCallback().
◆ locks
unsigned short fqdncache_entry::locks |
Definition at line 98 of file fqdncache.cc.
Referenced by fqdncache_purgelru(), fqdncacheAddEntryFromHosts(), fqdncacheExpiredEntry(), fqdncacheLockEntry(), and fqdncacheUnlockEntry().
◆ lru
dlink_node fqdncache_entry::lru |
Definition at line 97 of file fqdncache.cc.
Referenced by fqdncacheAddEntry(), and fqdncacheLockEntry().
◆ name_count
unsigned char fqdncache_entry::name_count |
Definition at line 90 of file fqdncache.cc.
Referenced by fqdncacheAddEntryFromHosts(), fqdncacheCallback(), fqdncacheParse(), fqdnStats(), and ~fqdncache_entry().
◆ names
char* fqdncache_entry::names[FQDN_MAX_NAMES+1] |
Definition at line 91 of file fqdncache.cc.
Referenced by fqdncache_entry(), fqdncache_gethostbyaddr(), fqdncacheAddEntryFromHosts(), fqdncacheCallback(), fqdncacheParse(), fqdnStats(), and ~fqdncache_entry().
◆ request_time
struct timeval fqdncache_entry::request_time |
Definition at line 96 of file fqdncache.cc.
Referenced by age(), fqdncache_entry(), and fqdncache_nbgethostbyaddr().
The documentation for this class was generated from the following file:
- src/fqdncache.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