Collaboration diagram for fqdncache_entry:

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]
 
FQDNHhandler
 
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 ( const char *  name)

Definition at line 254 of file fqdncache.cc.

References hash, hash_link::key, names, request_time, and xstrdup.

fqdncache_entry::~fqdncache_entry ( )

Definition at line 609 of file fqdncache.cc.

References error_message, hash, int, hash_link::key, name_count, names, and xfree.

Member Function Documentation

int fqdncache_entry::age ( ) const

Definition at line 146 of file fqdncache.cc.

References current_time, request_time, and tvSubMsec().

Referenced by fqdncacheHandleReply().

fqdncache_entry::MEMPROXY_CLASS ( fqdncache_entry  )
private

Member Data Documentation

char* fqdncache_entry::error_message

Definition at line 94 of file fqdncache.cc.

Referenced by fqdncacheCallback(), fqdncacheParse(), and ~fqdncache_entry().

time_t fqdncache_entry::expires

Definition at line 89 of file fqdncache.cc.

Referenced by fqdncacheExpiredEntry(), fqdncacheParse(), and fqdnStats().

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
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
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
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:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors