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 {
20 public:
22
30 dns_end_point(const xtd::ustring& host, uint16 port);
31
39 dns_end_point(const xtd::ustring& host, uint16 port, sockets::address_family address_family);
41
43 dns_end_point(dns_end_point&&) = default;
44 dns_end_point(const dns_end_point&) = default;
45 dns_end_point& operator =(const dns_end_point&) = default;
47
49
53 const xtd::ustring& host() const noexcept;
54
57 uint16 port() const noexcept;
59
61
65 xtd::ustring to_string() const noexcept override;
67
68 private:
69 xtd::ustring host_;
70 uint16 port_ = 0;
71 };
72 }
73}
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:19
dns_end_point(const xtd::ustring &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::ustring & host() const noexcept
Gets the host name or string representation of the Internet Protocol (IP) address of the host.
dns_end_point(const xtd::ustring &host, uint16 port)
Initializes a new instance of the xtd::net::dns_end_point class with the host name or string represen...
Identifies a network address. This is an abstract class.
Definition end_point.h:25
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
Contains xtd::net::end_point class.
#define core_export_
Define shared library export.
Definition core_export.h:13
uint_least16_t uint16
Represents a 16-bit unsigned integer.
Definition types.h:230
address_family
Specifies the addressing scheme that an instance of the xtd::net::sockets::socket class can use.
Definition address_family.h:28
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10