CernVM-FS  2.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dns.h File Reference
#include <stdint.h>
#include <cstdio>
#include <ctime>
#include <map>
#include <set>
#include <string>
#include <vector>
#include "atomic.h"
#include "duplex_cares.h"
#include "gtest/gtest_prod.h"
#include "prng.h"
#include "util/single_copy.h"
Include dependency graph for dns.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  dns::Host
 
class  dns::Resolver
 
class  dns::CaresResolver
 
class  dns::HostfileResolver
 
struct  dns::HostfileResolver::HostEntry
 
class  dns::NormalResolver
 

Namespaces

 dns
 

Enumerations

enum  dns::Failures {
  dns::kFailOk = 0, dns::kFailInvalidResolvers, dns::kFailTimeout, dns::kFailInvalidHost,
  dns::kFailUnknownHost, dns::kFailMalformed, dns::kFailNoAddress, dns::kFailNotYetResolved,
  dns::kFailOther, dns::kFailNumEntries
}
 
enum  dns::IpPreference { dns::kIpPreferSystem = 0, dns::kIpPreferV4, dns::kIpPreferV6 }
 

Functions

const char * dns::Code2Ascii (const Failures error)
 
std::string dns::ExtractHost (const std::string &url)
 
std::string dns::ExtractPort (const std::string &url)
 
std::string dns::RewriteUrl (const std::string &url, const std::string &ip)
 
std::string dns::StripIp (const std::string &decorated_ip)
 
std::string dns::AddDefaultScheme (const std::string &proxy)