ipcache.h File Reference
#include "base/CbcPointer.h"
#include "dns/forward.h"
#include "ip/Address.h"
#include <iosfwd>
#include <vector>
Include dependency graph for ipcache.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Dns::CachedIp
 a CachedIps element More...
 
class  Dns::IpsSelector< Iterator >
 
class  Dns::CachedIps
 
class  Dns::IpsIterator
 Iterates over any (good and/or bad) IPs in CachedIps, in unspecified order. More...
 
class  Dns::GoodIpsIterator
 Iterates over good IPs in CachedIps, starting at the so called current one. More...
 
class  Dns::IpsSelector< Iterator >
 
class  Dns::IpReceiver
 an interface for receiving IP::Addresses from nbgethostbyname() More...
 

Namespaces

 Dns
 generic DNS API
 

Typedefs

typedef Dns::CachedIps ipcache_addrs
 deprecated alias More...
 
typedef void IPH (const ipcache_addrs *, const Dns::LookupDetails &details, void *)
 

Functions

void Dns::nbgethostbyname (const char *name, const CbcPointer< IpReceiver > &receiver)
 initiate an (often) asynchronous DNS lookup; the receiver gets the results More...
 
void ipcache_purgelru (void *)
 
void ipcache_nbgethostbyname (const char *name, IPH *handler, void *handlerData)
 
const ipcache_addrsipcache_gethostbyname (const char *, int flags)
 
void ipcacheInvalidate (const char *)
 
void ipcacheInvalidateNegative (const char *)
 
void ipcache_init (void)
 
void ipcacheMarkBadAddr (const char *name, const Ip::Address &)
 
void ipcacheMarkGoodAddr (const char *name, const Ip::Address &)
 
void ipcacheFreeMemory (void)
 
void ipcache_restart (void)
 
int ipcacheAddEntryFromHosts (const char *name, const char *ipaddr)
 
std::ostream & operator<< (std::ostream &os, const Dns::CachedIps &ips)
 

Typedef Documentation

Definition at line 217 of file ipcache.h.

typedef void IPH(const ipcache_addrs *, const Dns::LookupDetails &details, void *)

Definition at line 219 of file ipcache.h.

Function Documentation

void ipcacheMarkBadAddr ( const char *  name,
const Ip::Address addr 
)

Marks the given address as BAD. Does nothing if the domain name does not exist.

Parameters
namedomain name to have an IP marked bad
addrspecific addres to be marked bad

Definition at line 1058 of file ipcache.cc.

References ipcache_get().

Referenced by Comm::ConnOpener::sendAnswer().

std::ostream& operator<< ( std::ostream &  os,
const Dns::CachedIps ips 
)
inline

Definition at line 234 of file ipcache.h.

References Dns::CachedIps::reportCurrent().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors