| Home | Libraries | People | FAQ | More

# boost::asio::resolver_service< Protocol > Class Template Reference

Inherits boost::asio::io_service::service.

Inheritance diagram for boost::asio::resolver_service< Protocol >:

List of all members.

## Detailed Description

### template<typename Protocol>
class boost::asio::resolver_service< Protocol >

Default service implementation for a resolver.

## Public Types

typedef Protocol | protocol_type
| The protocol type.
typedef Protocol::endpoint | endpoint_type
| The endpoint type.
typedef Protocol::resolver_query | query_type
| The query type.
typedef Protocol::resolver_iterator | iterator_type
| The iterator type.
typedef implementation_defined | implementation_type
| The type of a resolver implementation.

## Public Member Functions

| resolver_service (boost::asio::io_service &io_service)
| Construct a new resolver service for the specified io_service.
void | shutdown_service ()
| Destroy all user-defined handler objects owned by the service.
void | construct (implementation_type &impl)
| Construct a new resolver implementation.
void | destroy (implementation_type &impl)
| Destroy a resolver implementation.
void | cancel (implementation_type &impl)
| Cancel pending asynchronous operations.
template<typename Error_Handler>
iterator_type | resolve (implementation_type &impl, const query_type &query, Error_Handler error_handler)
| Resolve a query to a list of entries.
template<typename Handler>
void | async_resolve (implementation_type &impl, const query_type &query, Handler handler)
| Asynchronously resolve a query to a list of entries.
template<typename Error_Handler>
iterator_type | resolve (implementation_type &impl, const endpoint_type &endpoint, Error_Handler error_handler)
| Resolve an endpoint to a list of entries.
template<typename Handler>
void | async_resolve (implementation_type &impl, const endpoint_type &endpoint, Handler handler)
| Asynchronously resolve an endpoint to a list of entries.
io_service & | owner ()
| Get the io_service object that owns the service.

## Member Typedef Documentation

template<typename Protocol>

typedef Protocol boost::asio::resolver_service< Protocol >::protocol_type

The protocol type.

template<typename Protocol>

typedef Protocol::endpoint boost::asio::resolver_service< Protocol >::endpoint_type

The endpoint type.

template<typename Protocol>

typedef Protocol::resolver_query boost::asio::resolver_service< Protocol >::query_type

The query type.

template<typename Protocol>

typedef Protocol::resolver_iterator boost::asio::resolver_service< Protocol >::iterator_type

The iterator type.

template<typename Protocol>

typedef implementation_defined boost::asio::resolver_service< Protocol >::implementation_type

The type of a resolver implementation.

## Constructor & Destructor Documentation

template<typename Protocol>

boost::asio::resolver_service< Protocol >::resolver_service | ( | boost::asio::io_service & | io_service | ) | `[explicit]`

Construct a new resolver service for the specified io_service.

## Member Function Documentation

template<typename Protocol>

void boost::asio::resolver_service< Protocol >::shutdown_service | ( |  | ) | `[virtual]`

Destroy all user-defined handler objects owned by the service.

Implements boost::asio::io_service::service.

template<typename Protocol>

void boost::asio::resolver_service< Protocol >::construct | ( | implementation_type & | impl | ) |

Construct a new resolver implementation.

template<typename Protocol>

void boost::asio::resolver_service< Protocol >::destroy | ( | implementation_type & | impl | ) |

Destroy a resolver implementation.

template<typename Protocol>

void boost::asio::resolver_service< Protocol >::cancel | ( | implementation_type & | impl | ) |

Cancel pending asynchronous operations.

template<typename Protocol>
template<typename Error_Handler>

iterator_type boost::asio::resolver_service< Protocol >::resolve | ( | implementation_type & | impl,
|  | const query_type & | query,
|  | Error_Handler | error_handler |
| ) |  |  |

Resolve a query to a list of entries.

template<typename Protocol>
template<typename Handler>

void boost::asio::resolver_service< Protocol >::async_resolve | ( | implementation_type & | impl,
|  | const query_type & | query,
|  | Handler | handler |
| ) |  |  |

Asynchronously resolve a query to a list of entries.

template<typename Protocol>
template<typename Error_Handler>

iterator_type boost::asio::resolver_service< Protocol >::resolve | ( | implementation_type & | impl,
|  | const endpoint_type & | endpoint,
|  | Error_Handler | error_handler |
| ) |  |  |

Resolve an endpoint to a list of entries.

template<typename Protocol>
template<typename Handler>

void boost::asio::resolver_service< Protocol >::async_resolve | ( | implementation_type & | impl,
|  | const endpoint_type & | endpoint,
|  | Handler | handler |
| ) |  |  |

Asynchronously resolve an endpoint to a list of entries.

io_service & boost::asio::io_service::service::owner | ( |  | ) | `[inherited]`

Get the io_service object that owns the service.

| Copyright © 2003 - 2006 Christopher M. Kohlhoff