asio 0.3.8rc3 | Home | Reference | Tutorial | Examples | Design

Reference | Class Hierarchy | Class Index | Member Index

# asio::ip::basic_resolver_iterator< InternetProtocol > Class Template Reference

List of all members.

## Detailed Description

### template<typename InternetProtocol>
class asio::ip::basic_resolver_iterator< InternetProtocol >

An iterator over the entries produced by a resolver.

The asio::ip::basic_resolver_iterator class template is used to define iterators over the results returned by a resolver.

The iterator's value_type, obtained when the iterator is dereferenced, is:

     const basic_resolver_entry<InternetProtocol>

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

## Public Member Functions

| basic_resolver_iterator ()
| Default constructor creates an end iterator.

## Static Public Member Functions

static basic_resolver_iterator | create (asio::detail::addrinfo_type *address_info, const std::string &host_name, const std::string &service_name)
| Create an iterator from an addrinfo list returned by getaddrinfo.
static basic_resolver_iterator | create (const typename InternetProtocol::endpoint &endpoint, const std::string &host_name, const std::string &service_name)
| Create an iterator from an endpoint, host name and service name.

## Constructor & Destructor Documentation

template<typename InternetProtocol>

asio::ip::basic_resolver_iterator< InternetProtocol >::basic_resolver_iterator | ( |  | ) |

Default constructor creates an end iterator.

## Member Function Documentation

template<typename InternetProtocol>

static basic_resolver_iterator asio::ip::basic_resolver_iterator< InternetProtocol >::create | ( | asio::detail::addrinfo_type * | address_info,
|  | const std::string & | host_name,
|  | const std::string & | service_name |
| ) |  |  | `[static]`

Create an iterator from an addrinfo list returned by getaddrinfo.

template<typename InternetProtocol>

static basic_resolver_iterator asio::ip::basic_resolver_iterator< InternetProtocol >::create | ( | const typename InternetProtocol::endpoint & | endpoint,
|  | const std::string & | host_name,
|  | const std::string & | service_name |
| ) |  |  | `[static]`

Create an iterator from an endpoint, host name and service name.

asio 0.3.8rc3 | Home | Reference | Tutorial | Examples | Design