Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::asio::ip::basic_resolver_entry< InternetProtocol > Class Template Reference

An entry produced by a resolver. More...

#include <basic_resolver_entry.hpp>

Public Types

typedef InternetProtocol protocol_type
 The protocol type associated with the endpoint entry. More...
 
typedef InternetProtocol::endpoint endpoint_type
 The endpoint type associated with the endpoint entry. More...
 

Public Member Functions

 basic_resolver_entry ()
 Default constructor. More...
 
 basic_resolver_entry (const endpoint_type &ep, const std::string &host, const std::string &service)
 Construct with specified endpoint, host name and service name. More...
 
endpoint_type endpoint () const
 Get the endpoint associated with the entry. More...
 
 operator endpoint_type () const
 Convert to the endpoint associated with the entry. More...
 
std::string host_name () const
 Get the host name associated with the entry. More...
 
std::string service_name () const
 Get the service name associated with the entry. More...
 

Detailed Description

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

An entry produced by a resolver.

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

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

Member Typedef Documentation

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

The endpoint type associated with the endpoint entry.

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

The protocol type associated with the endpoint entry.

Constructor & Destructor Documentation

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

Default constructor.

template<typename InternetProtocol >
boost::asio::ip::basic_resolver_entry< InternetProtocol >::basic_resolver_entry ( const endpoint_type ep,
const std::string &  host,
const std::string &  service 
)
inline

Construct with specified endpoint, host name and service name.

Member Function Documentation

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

Get the endpoint associated with the entry.

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

Get the host name associated with the entry.

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

Convert to the endpoint associated with the entry.

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

Get the service name associated with the entry.


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