xtd 0.2.0
Loading...
Searching...
No Matches
dns.h
Go to the documentation of this file.
1
4#pragma once
5#include "ip_host_entry.h"
6#include "../core_export.h"
7#include "../static.h"
8#include <vector>
9
11namespace xtd {
13 namespace net {
25 public:
27
32 static std::vector<xtd::net::ip_address> get_host_addresses(const xtd::string& host_name_or_address);
33
38
42 static xtd::net::ip_host_entry get_host_entry(const xtd::string& host_name_or_address);
43
48 };
49 }
50}
Represents text as a sequence of character units.
Definition basic_string.h:79
Provides simple domain name resolution functionality.
Definition dns.h:24
static xtd::string get_host_name()
Gets the host name of the local computer.
static xtd::net::ip_host_entry get_host_entry(const ip_address &address)
Resolves an IP address to an xtd::net::ip_host_entry instance.
static xtd::net::ip_host_entry get_host_entry(const xtd::string &host_name_or_address)
Resolves a host name or IP address to an xtd::net::ip_host_entry instance.
static std::vector< xtd::net::ip_address > get_host_addresses(const xtd::string &host_name_or_address)
Returns the Internet Protocol (IP) addresses for the specified host.
Provides an Internet Protocol (IP) address.
Definition ip_address.h:37
Provides a container class for Internet host address information.
Definition ip_host_entry.h:26
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
#define core_export_
Define shared library export.
Definition core_export.h:13
Contains xtd::net::ip_host_entry class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10