xtd 0.2.0
Loading...
Searching...
No Matches
ip_host_entry.h
Go to the documentation of this file.
1
4#pragma once
5#include "ip_address.h"
6#include "../core_export.h"
7#include "../object.h"
8#include "../types.h"
9#include "../string.h"
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.h:37
Provides a container class for Internet host address information.
Definition ip_host_entry.h: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.h:42
#define core_export_
Define shared library export.
Definition core_export.h:13
Contains xtd::net::ip_address class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10