21 Internet protocol [internet]

21.14 Class template ip::basic_resolver_entry [internet.resolver.entry]

21.14.2 ip::basic_resolver_entry members [internet.resolver.entry.members]

endpoint_type endpoint() const;

Returns: The endpoint associated with the resolver entry.

operator endpoint_type() const;

Returns: endpoint().

template<class Allocator = allocator<char>> basic_string<char, char_traits<char>, Allocator> host_name(const Allocator& a = Allocator()) const;

Returns: The host name associated with the resolver entry.

Remarks: Ill-formed unless allocator_traits<Allocator>::value_type is char.

template<class Allocator = allocator<char>> basic_string<char, char_traits<char>, Allocator> service_name(const Allocator& a = Allocator()) const;

Returns: The service name associated with the resolver entry.

Remarks: Ill-formed unless allocator_traits<Allocator>::value_type is char.