xtd - Reference Guide 0.2.0
dns.h
Go to the documentation of this file.
1 #pragma once
5 
6 #include <vector>
7 #include "../core_export.h"
8 #include "../static.h"
9 #include "ip_host_entry.h"
10 
12 namespace xtd {
14  namespace net {
21  class core_export_ dns static_ {
22  public:
24 
29  static std::vector<xtd::net::ip_address> get_host_addresses(const xtd::ustring& host_name_or_address);
30 
34  static xtd::net::ip_host_entry get_host_entry(const ip_address& address);
35 
39  static xtd::net::ip_host_entry get_host_entry(const xtd::ustring& host_name_or_address);
40 
43  static xtd::ustring get_host_name();
45  };
46  }
47 }
Provides an Internet Protocol (IP) address.
Definition: ip_address.h:34
#define static_
This keyword is use to represent a static object. A static object can&#39;t be instantiated (constructors...
Definition: static.h:38
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::net::ip_host_entry class.
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:50
Provides simple domain name resolution functionality.
Definition: dns.h:21
Provides a container class for Internet host address information.
Definition: ip_host_entry.h:23