Electroneum
dns_utils.cpp File Reference
#include "common/dns_utils.h"
#include "unbound.h"
#include <stdlib.h>
#include "include_base_utils.h"
#include "common/threadpool.h"
#include "crypto/crypto.h"
#include <boost/optional.hpp>
#include <random>
#include <boost/filesystem/fstream.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/thread.hpp>
#include <boost/algorithm/string/join.hpp>
Include dependency graph for dns_utils.cpp:

Go to the source code of this file.

Classes

class  tools::scoped_ptr< type, freefunc >
 
struct  tools::DNSResolverData
 
class  tools::string_copy
 

Namespaces

 tools
 Various Tools.
 
 tools::dns_utils
 

Macros

#define ELECTRONEUM_DEFAULT_LOG_CATEGORY   "net.dns"
 

Typedefs

typedef class scoped_ptr< ub_result, ub_resolve_freetools::ub_result_ptr
 

Functions

boost::optional< std::string > tools::ipv4_to_string (const char *src, size_t len)
 
boost::optional< std::string > tools::ipv6_to_string (const char *src, size_t len)
 
boost::optional< std::string > tools::txt_to_string (const char *src, size_t len)
 
std::string tools::dns_utils::address_from_txt_record (const std::string &s)
 
std::vector< std::string > tools::dns_utils::addresses_from_url (const std::string &url, bool &dnssec_valid)
 gets a electroneum address from the TXT record of a DNS entry More...
 
std::string tools::dns_utils::get_account_address_as_str_from_url (const std::string &url, bool &dnssec_valid, std::function< std::string(const std::string &, const std::vector< std::string > &, bool)> dns_confirm)
 
bool tools::dns_utils::load_txt_records_from_dns (std::vector< std::string > &good_records, const std::vector< std::string > &dns_urls, std::string type)
 
std::vector< std::string > tools::dns_utils::parse_dns_public (const char *s)
 

Macro Definition Documentation

◆ ELECTRONEUM_DEFAULT_LOG_CATEGORY

#define ELECTRONEUM_DEFAULT_LOG_CATEGORY   "net.dns"

Definition at line 47 of file dns_utils.cpp.