xtd - Reference Guide
0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
xtd.core
include
xtd
net
dns.h
Go to the documentation of this file.
1
4
#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
:
26
static
std::vector<xtd::net::ip_address>
get_host_addresses
(
const
xtd::ustring
& host_name_or_address);
27
31
static
xtd::net::ip_host_entry
get_host_entry
(
const
ip_address
& address);
32
36
static
xtd::net::ip_host_entry
get_host_entry
(
const
xtd::ustring
& host_name_or_address);
37
40
static
xtd::ustring
get_host_name
();
41
};
42
}
43
}
xtd::net::dns
Provides simple domain name resolution functionality.
Definition
dns.h:21
xtd::net::dns::get_host_entry
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.
xtd::net::dns::get_host_name
static xtd::ustring get_host_name()
Gets the host name of the local computer.
xtd::net::dns::get_host_addresses
static std::vector< xtd::net::ip_address > get_host_addresses(const xtd::ustring &host_name_or_address)
Returns the Internet Protocol (IP) addresses for the specified host.
xtd::net::dns::get_host_entry
static xtd::net::ip_host_entry get_host_entry(const xtd::ustring &host_name_or_address)
Resolves a host name or IP address to an xtd::net::ip_host_entry instance.
xtd::net::ip_address
Provides an Internet Protocol (IP) address.
Definition
ip_address.h:30
xtd::net::ip_host_entry
Provides a container class for Internet host address information.
Definition
ip_host_entry.h:23
xtd::ustring
Represents text as a sequence of UTF-8 code units.
Definition
ustring.h:48
static_
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition
static.h:38
core_export_
#define core_export_
Define shared library export.
Definition
core_export.h:13
ip_host_entry.h
Contains xtd::net::ip_host_entry class.
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
system_report.h:17
Generated on Tue Mar 12 2024 16:25:08 for xtd - Reference Guide by
Gammasoft
. All rights reserved.