ESP32  1.0.4
asio::ip::basic_resolver_entry< InternetProtocol > クラステンプレート

An entry produced by a resolver. [詳解]

#include <basic_resolver_entry.hpp>

公開型

typedef InternetProtocol protocol_type
 The protocol type associated with the endpoint entry. [詳解]
 
typedef InternetProtocol::endpoint endpoint_type
 The endpoint type associated with the endpoint entry. [詳解]
 

公開メンバ関数

 basic_resolver_entry ()
 Default constructor. [詳解]
 
 basic_resolver_entry (const endpoint_type &ep, ASIO_STRING_VIEW_PARAM host, ASIO_STRING_VIEW_PARAM service)
 Construct with specified endpoint, host name and service name. [詳解]
 
endpoint_type endpoint () const
 Get the endpoint associated with the entry. [詳解]
 
 operator endpoint_type () const
 Convert to the endpoint associated with the entry. [詳解]
 
std::string host_name () const
 Get the host name associated with the entry. [詳解]
 
template<class Allocator >
std::basic_string< char, std::char_traits< char >, Allocator > host_name (const Allocator &alloc=Allocator()) const
 Get the host name associated with the entry. [詳解]
 
std::string service_name () const
 Get the service name associated with the entry. [詳解]
 
template<class Allocator >
std::basic_string< char, std::char_traits< char >, Allocator > service_name (const Allocator &alloc=Allocator()) const
 Get the service name associated with the entry. [詳解]
 

詳解

template<typename InternetProtocol>
class asio::ip::basic_resolver_entry< InternetProtocol >

An entry produced by a resolver.

The asio::ip::basic_resolver_entry class template describes an entry as returned by a resolver.

Thread Safety
Distinct objects: Safe.
Shared objects: Unsafe.

basic_resolver_entry.hpp37 行目に定義があります。

型定義メンバ詳解

◆ endpoint_type

template<typename InternetProtocol >
typedef InternetProtocol::endpoint asio::ip::basic_resolver_entry< InternetProtocol >::endpoint_type

The endpoint type associated with the endpoint entry.

basic_resolver_entry.hpp44 行目に定義があります。

◆ protocol_type

template<typename InternetProtocol >
typedef InternetProtocol asio::ip::basic_resolver_entry< InternetProtocol >::protocol_type

The protocol type associated with the endpoint entry.

basic_resolver_entry.hpp41 行目に定義があります。

構築子と解体子

◆ basic_resolver_entry() [1/2]

template<typename InternetProtocol >
asio::ip::basic_resolver_entry< InternetProtocol >::basic_resolver_entry ( )
inline

Default constructor.

basic_resolver_entry.hpp47 行目に定義があります。

48  {
49  }

◆ basic_resolver_entry() [2/2]

template<typename InternetProtocol >
asio::ip::basic_resolver_entry< InternetProtocol >::basic_resolver_entry ( const endpoint_type ep,
ASIO_STRING_VIEW_PARAM  host,
ASIO_STRING_VIEW_PARAM  service 
)
inline

Construct with specified endpoint, host name and service name.

basic_resolver_entry.hpp52 行目に定義があります。

54  : endpoint_(ep),
55  host_name_(static_cast<std::string>(host)),
56  service_name_(static_cast<std::string>(service))
57  {
58  }

関数詳解

◆ endpoint()

template<typename InternetProtocol >
endpoint_type asio::ip::basic_resolver_entry< InternetProtocol >::endpoint ( ) const
inline

Get the endpoint associated with the entry.

basic_resolver_entry.hpp61 行目に定義があります。

62  {
63  return endpoint_;
64  }

◆ host_name() [1/2]

template<typename InternetProtocol >
std::string asio::ip::basic_resolver_entry< InternetProtocol >::host_name ( ) const
inline

Get the host name associated with the entry.

basic_resolver_entry.hpp73 行目に定義があります。

74  {
75  return host_name_;
76  }

◆ host_name() [2/2]

template<typename InternetProtocol >
template<class Allocator >
std::basic_string<char, std::char_traits<char>, Allocator> asio::ip::basic_resolver_entry< InternetProtocol >::host_name ( const Allocator &  alloc = Allocator()) const
inline

Get the host name associated with the entry.

basic_resolver_entry.hpp80 行目に定義があります。

82  {
83  return std::basic_string<char, std::char_traits<char>, Allocator>(
84  host_name_.c_str(), alloc);
85  }
associated_allocator< handler >::type alloc((get_associated_allocator)(init.completion_handler))

◆ operator endpoint_type()

template<typename InternetProtocol >
asio::ip::basic_resolver_entry< InternetProtocol >::operator endpoint_type ( ) const
inline

Convert to the endpoint associated with the entry.

basic_resolver_entry.hpp67 行目に定義があります。

68  {
69  return endpoint_;
70  }

◆ service_name() [1/2]

template<typename InternetProtocol >
std::string asio::ip::basic_resolver_entry< InternetProtocol >::service_name ( ) const
inline

Get the service name associated with the entry.

basic_resolver_entry.hpp88 行目に定義があります。

89  {
90  return service_name_;
91  }

◆ service_name() [2/2]

template<typename InternetProtocol >
template<class Allocator >
std::basic_string<char, std::char_traits<char>, Allocator> asio::ip::basic_resolver_entry< InternetProtocol >::service_name ( const Allocator &  alloc = Allocator()) const
inline

Get the service name associated with the entry.

basic_resolver_entry.hpp95 行目に定義があります。

97  {
98  return std::basic_string<char, std::char_traits<char>, Allocator>(
99  service_name_.c_str(), alloc);
100  }
associated_allocator< handler >::type alloc((get_associated_allocator)(init.completion_handler))

このクラス詳解は次のファイルから抽出されました: