Skip to content

asio::ip::basic_resolver_entry

An entry produced by a resolver.

詳細情報

メンバー

basic_resolver_entry()

Default constructor.

asio::ip::basic_resolver_entry< InternetProtocol >::basic_resolver_entry()

basic_resolver_entry()

Construct with specified endpoint, host name and service name.

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

引数

  • const& ep
  • ASIO_STRING_VIEW_PARAM host
  • ASIO_STRING_VIEW_PARAM service

endpoint()

Get the endpoint associated with the entry.

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

戻り値

endpoint_type

operator endpoint_type()

Convert to the endpoint associated with the entry.

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

host_name()

Get the host name associated with the entry.

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

戻り値

std::string

host_name()

Get the host name associated with the entry.

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

引数

  • constAllocator & alloc

戻り値

std::basic_string< char, std::char_traits< char >, Allocator >

service_name()

Get the service name associated with the entry.

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

戻り値

std::string

service_name()

Get the service name associated with the entry.

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

引数

  • constAllocator & alloc

戻り値

std::basic_string< char, std::char_traits< char >, Allocator >