Shows how to use xtd::net::dns class.
#include <xtd/net/dns>
#include <xtd/console>
auto main() -> int {
auto addresses = dns::get_host_addresses("www.google.com");
console::write_line("www.google.com addresses:");
for (auto address : addresses)
console::write_line(" * {}", address);
}
The xtd::net namespace provides a simple programming interface for many of the protocols used on netw...
Definition cookie_exception.hpp:11
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10