D++ (DPP)  10.0.30
C++ Discord API Bot Library
dns.cpp File Reference
#include <dpp/dns.h>
#include <cerrno>
#include <exception>
#include <cstring>
#include <mutex>
#include <shared_mutex>
#include <dpp/exception.h>
Include dependency graph for dns.cpp:

Namespaces

 dpp
 The main namespace for D++ functions.
 

Functions

const dns_cache_entry * dpp::resolve_hostname (const std::string &hostname, const std::string &port)
 Resolve a hostname to an addrinfo. More...
 

Variables

dns_cache_t dpp::dns_cache
 
std::shared_mutex dpp::dns_cache_mutex
 
constexpr time_t dpp::one_hour = 60 * 60