Monday, December 31, 2007

squid : Optimising Web Delivery - IP Cache API

squid : Optimising Web Delivery

Detailed Description
The IP cache is a built-in component of squid providing Hostname to IP-Number translation functionality and managing the involved data-structures. Efficiency concerns require mechanisms that allow non-blocking access to these mappings. The IP cache usually doesn't block on a request except for special cases where this is desired.


Functions
void ipcache_purgelru (void *voidnotused)
static int ipcacheParse (ipcache_entry *i, const char *inbuf)
void ipcache_nbgethostbyname (const char *name, IPH *handler, void *handlerData)
void ipcache_init (void)
void ipcacheRegisterWithCacheManager (CacheManager &manager)
const ipcache_addrs * ipcache_gethostbyname (const char *name, int flags)
void ipcacheInvalidate (const char *name)
void ipcacheInvalidateNegative (const char *name)
ipcache_addrs * ipcacheCheckNumeric (const char *name)
void ipcacheCycleAddr (const char *name, ipcache_addrs *ia)
void ipcacheMarkBadAddr (const char *name, IPAddress &addr)
void ipcacheMarkGoodAddr (const char *name, IPAddress &addr)
void ipcacheFreeMemory (void)
void ipcache_restart (void)
int ipcacheAddEntryFromHosts (const char *name, const char *ipaddr)
variable_list * snmp_netIpFn (variable_list *Var, snint *ErrP)