xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
xtd::net::ip_host_entry Class Reference

#include <ip_host_entry.h>

Definition

Provides a container class for Internet host address information.

Namespace
xtd::net
Library
xtd.core

Inherits xtd::object.

Public Member Functions

 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
 Get List of IP addresses that are associated with a host.
 
std::vector< xtd::net::ip_address > & address_list () noexcept
 Get List of IP addresses that are associated with a host.
 
ip_host_entryaddress_list (const std::vector< xtd::net::ip_address > &address_list) noexcept
 Set List of IP addresses that are associated with a host.
 
const std::vector< xtd::ustring > & aliases () const noexcept
 Get List of aliases that are associated with a host.
 
std::vector< xtd::ustring > & aliases () noexcept
 Get List of aliases that are associated with a host.
 
ip_host_entryaliases (const std::vector< xtd::ustring > &aliases) noexcept
 Set List of aliases that are associated with a host.
 
const xtd::ustringhost_name () const noexcept
 Get the DNS name of the host.
 
ip_host_entryhost_name (const xtd::ustring &host_name) noexcept
 Set the DNS name of the host.
 
- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object.
 
virtual bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object.
 
virtual size_t get_hash_code () const noexcept
 Serves as a hash function for a particular type.
 
template<typename object_t >
std::unique_ptr< object_t > memberwise_clone () const
 Gets the type of the current instance.
 
virtual xtd::ustring to_string () const noexcept
 Returns a std::string that represents the current object.
 

Additional Inherited Members

- Static Public Member Functions inherited from xtd::object
static bool equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
static bool reference_equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are the same instance.
 

Constructor & Destructor Documentation

◆ ip_host_entry()

xtd::net::ip_host_entry::ip_host_entry ( )
default

Initializes a new instance of the xtd::net::ip_host_entry.

Member Function Documentation

◆ address_list() [1/3]

const std::vector< xtd::net::ip_address > & xtd::net::ip_host_entry::address_list ( ) const
noexcept

Get List of IP addresses that are associated with a host.

Returns
An xtd::net::ip_address array of IP addresses that are associated with a host.

◆ address_list() [2/3]

std::vector< xtd::net::ip_address > & xtd::net::ip_host_entry::address_list ( )
noexcept

Get List of IP addresses that are associated with a host.

Returns
An xtd::net::ip_address array of IP addresses that are associated with a host.

◆ address_list() [3/3]

ip_host_entry & xtd::net::ip_host_entry::address_list ( const std::vector< xtd::net::ip_address > &  address_list)
noexcept

Set List of IP addresses that are associated with a host.

Parameters
address_listAn xtd::net::ip_address array of IP addresses that are associated with a host.
Returns
The current instance.

◆ aliases() [1/3]

const std::vector< xtd::ustring > & xtd::net::ip_host_entry::aliases ( ) const
noexcept

Get List of aliases that are associated with a host.

Returns
A string array of aliases that are associated with a host.

◆ aliases() [2/3]

std::vector< xtd::ustring > & xtd::net::ip_host_entry::aliases ( )
noexcept

Get List of aliases that are associated with a host.

Returns
A string array of aliases that are associated with a host.

◆ aliases() [3/3]

ip_host_entry & xtd::net::ip_host_entry::aliases ( const std::vector< xtd::ustring > &  aliases)
noexcept

Set List of aliases that are associated with a host.

Parameters
aliasesA string array of aliases that are associated with a host.
Returns
The current instance.

◆ host_name() [1/2]

const xtd::ustring & xtd::net::ip_host_entry::host_name ( ) const
noexcept

Get the DNS name of the host.

Returns
A string represent the DNS name of the host.

◆ host_name() [2/2]

ip_host_entry & xtd::net::ip_host_entry::host_name ( const xtd::ustring host_name)
noexcept

Set the DNS name of the host.

Parameters
hist_nameA string represent the DNS name of the host.
Returns
The current instance.

The documentation for this class was generated from the following file: