|
Squid Web Cache master
|
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 | |
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) | |
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.
| 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 | ( | ) |
Definition at line 603 of file fqdncache.cc.
References error_message, hash, int, hash_link::key, name_count, names, and xfree.
| int fqdncache_entry::age | ( | ) | const |
Definition at line 145 of file fqdncache.cc.
References current_time, request_time, and tvSubMsec().
Referenced by fqdncacheHandleReply().
|
private |
| char* fqdncache_entry::error_message |
Definition at line 94 of file fqdncache.cc.
Referenced by ~fqdncache_entry(), fqdncacheCallback(), and fqdncacheParse().
| time_t fqdncache_entry::expires |
Definition at line 89 of file fqdncache.cc.
Referenced by fqdncacheExpiredEntry(), fqdncacheParse(), and fqdnStats().
| struct fqdncache_entry::Flags fqdncache_entry::flags |
| FQDNH* fqdncache_entry::handler |
Definition at line 92 of file fqdncache.cc.
Referenced by fqdncache_nbgethostbyaddr(), and fqdncacheCallback().
| void* fqdncache_entry::handlerData |
Definition at line 93 of file fqdncache.cc.
Referenced by fqdncache_nbgethostbyaddr(), and fqdncacheCallback().
| hash_link fqdncache_entry::hash |
Definition at line 87 of file fqdncache.cc.
Referenced by fqdncache_entry(), ~fqdncache_entry(), fqdncacheAddEntry(), fqdncacheParse(), fqdncacheRelease(), and fqdnStats().
| time_t fqdncache_entry::lastref |
Definition at line 88 of file fqdncache.cc.
Referenced by fqdncache_gethostbyaddr(), fqdncacheAddEntry(), and fqdncacheCallback().
| unsigned short fqdncache_entry::locks |
Definition at line 98 of file fqdncache.cc.
Referenced by fqdncache_purgelru(), fqdncacheAddEntryFromHosts(), fqdncacheExpiredEntry(), fqdncacheLockEntry(), and fqdncacheUnlockEntry().
| dlink_node fqdncache_entry::lru |
Definition at line 97 of file fqdncache.cc.
Referenced by fqdncacheAddEntry(), fqdncacheLockEntry(), and fqdncacheRelease().
| unsigned char fqdncache_entry::name_count |
Definition at line 90 of file fqdncache.cc.
Referenced by ~fqdncache_entry(), fqdncacheAddEntryFromHosts(), fqdncacheCallback(), fqdncacheParse(), and fqdnStats().
| char* fqdncache_entry::names[FQDN_MAX_NAMES+1] |
Definition at line 91 of file fqdncache.cc.
Referenced by fqdncache_entry(), ~fqdncache_entry(), fqdncache_gethostbyaddr(), fqdncacheAddEntryFromHosts(), fqdncacheCallback(), fqdncacheParse(), and fqdnStats().
| struct timeval fqdncache_entry::request_time |
Definition at line 96 of file fqdncache.cc.
Referenced by fqdncache_entry(), age(), and fqdncache_nbgethostbyaddr().