LIBWIRE
Next-generation C++17 networking library.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Namespaces | Functions
dns.hpp File Reference

This file defines free functions for interaction with system resolver. More...

#include <vector>
#include <system_error>
#include <string_view>
#include <libwire/protocols.hpp>
#include <libwire/address.hpp>

Go to the source code of this file.

Namespaces

 libwire::dns
 Namespace with functions for interaction with system DNS resolver.
 

Functions

std::vector< address > libwire::dns::resolve (ip protocol, const std::string_view &domain, std::error_code &ec) noexcept
 Resolve domain name to one or more IP addresses of 'protocol' version. More...
 
std::vector< address > libwire::dns::resolve (ip protocol, const std::string_view &domain)
 Same as overload with error code but throws std::system_error instead of setting error code. More...
 

Detailed Description

This file defines free functions for interaction with system resolver.

Definition in file dns.hpp.