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

fqdncache_entry::MEMPROXY_CLASS ( fqdncache_entry  )
private

Member Data Documentation

◆ error_message

char* fqdncache_entry::error_message

Definition at line 94 of file fqdncache.cc.

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

◆ expires

time_t fqdncache_entry::expires

Definition at line 89 of file fqdncache.cc.

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

◆ 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

◆ 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

◆ lru

dlink_node fqdncache_entry::lru

Definition at line 97 of file fqdncache.cc.

Referenced by fqdncacheAddEntry(), fqdncacheLockEntry(), and fqdncacheRelease().

◆ name_count

unsigned char fqdncache_entry::name_count

◆ names

◆ request_time

struct timeval fqdncache_entry::request_time

Definition at line 96 of file fqdncache.cc.

Referenced by fqdncache_entry(), age(), and fqdncache_nbgethostbyaddr().


The documentation for this class was generated from the following file:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors