xtd 0.2.0
Loading...
Searching...
No Matches
dns_end_point.h
Go to the documentation of this file.
1
4#pragma once
5#include "end_point.h"
6
8namespace xtd {
10 namespace net {
22 public:
24
32 dns_end_point(const xtd::string& host, uint16 port);
33
41 dns_end_point(const xtd::string& host, uint16 port, sockets::address_family address_family);
43
45 dns_end_point(dns_end_point&&) = default;
46 dns_end_point(const dns_end_point&) = default;
47 dns_end_point& operator =(const dns_end_point&) = default;
49
51
55 const xtd::string& host() const noexcept;
56
59 uint16 port() const noexcept;
61
63
67 xtd::string to_string() const noexcept override;
69
70 private:
71 xtd::string host_;
72 uint16 port_ = 0;
73 };
74 }
75}
Represents text as a sequence of character units.
Definition basic_string.h:79
Represents a network endpoint as a host name or a string representation of an IP address and a port n...
Definition dns_end_point.h:21
dns_end_point(const xtd::string &host, uint16 port)
Initializes a new instance of the xtd::net::dns_end_point class with the host name or string represen...
dns_end_point(const xtd::string &host, uint16 port, sockets::address_family address_family)
Initializes a new instance of the xtd::net::dns_end_point class with the host name or string represen...
const xtd::string & host() const noexcept
Gets the host name or string representation of the Internet Protocol (IP) address of the host.
Identifies a network address. This is an abstract class.
Definition end_point.h:27
Contains xtd::net::end_point class.
#define core_export_
Define shared library export.
Definition core_export.h:13
uint16_t uint16
Represents a 16-bit unsigned integer.
Definition uint16.h:23
address_family
Specifies the addressing scheme that an instance of the xtd::net::sockets::socket class can use.
Definition address_family.h:30
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10