xtd 0.2.0
Loading...
Searching...
No Matches
ip_host_entry.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "ip_address.hpp"
6#include "../core_export.hpp"
7#include "../object.hpp"
8#include "../types.hpp"
9#include "../string.hpp"
10#include <vector>
11
13namespace xtd {
15 namespace net {
27 public:
29
32 ip_host_entry() = default;
34
38 ip_host_entry& operator =(const ip_host_entry&) = default;
40
42
46 const std::vector<xtd::net::ip_address>& address_list() const noexcept;
49 std::vector<xtd::net::ip_address>& address_list() noexcept;
53 ip_host_entry& address_list(const std::vector<xtd::net::ip_address>& address_list) noexcept;
54
57 const std::vector<xtd::string>& aliases() const noexcept;
60 std::vector<xtd::string>& aliases() noexcept;
64 ip_host_entry& aliases(const std::vector<xtd::string>& aliases) noexcept;
65
68 const xtd::string& host_name() const noexcept;
72 ip_host_entry& host_name(const xtd::string& host_name) noexcept;
74
75 private:
76 std::vector<xtd::net::ip_address> address_list_;
77 std::vector<xtd::string> aliases_;
78 xtd::string host_name_;
79 };
80 }
81}
Provides an Internet Protocol (IP) address.
Definition ip_address.hpp:37
Provides a container class for Internet host address information.
Definition ip_host_entry.hpp:26
ip_host_entry()=default
Initializes a new instance of the xtd::net::ip_host_entry.
const std::vector< xtd::net::ip_address > & address_list() const noexcept
Gets List of IP addresses that are associated with a host.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
#define core_export_
Define shared library export.
Definition core_export.hpp:13
Contains xtd::net::ip_address class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10