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

Reference | Class Hierarchy | Class Index | Member Index

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

Inherits asio::io_service::service.

Inheritance diagram for asio::ip::resolver_service< InternetProtocol >:

List of all members.

## Detailed Description

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

Default service implementation for a resolver.

## Public Types

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

## Public Member Functions

| resolver_service (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.
iterator_type | resolve (implementation_type &impl, const query_type &query, asio::error_code &ec)
| 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.
iterator_type | resolve (implementation_type &impl, const endpoint_type &endpoint, asio::error_code &ec)
| Resolve an endpoint to a list of entries.
template<typename ResolveHandler>
void | async_resolve (implementation_type &impl, const endpoint_type &endpoint, ResolveHandler handler)
| Asynchronously resolve an endpoint to a list of entries.
asio::io_service & | io_service ()
| Get the io_service object that owns the service.

## Static Public Attributes

static asio::io_service::id | id
| The unique service identifier.

## Member Typedef Documentation

template<typename InternetProtocol>

typedef InternetProtocol asio::ip::resolver_service< InternetProtocol >::protocol_type

The protocol type.

template<typename InternetProtocol>

typedef InternetProtocol::endpoint asio::ip::resolver_service< InternetProtocol >::endpoint_type

The endpoint type.

template<typename InternetProtocol>

typedef InternetProtocol::resolver_query asio::ip::resolver_service< InternetProtocol >::query_type

The query type.

template<typename InternetProtocol>

typedef InternetProtocol::resolver_iterator asio::ip::resolver_service< InternetProtocol >::iterator_type

The iterator type.

template<typename InternetProtocol>

typedef implementation_defined asio::ip::resolver_service< InternetProtocol >::implementation_type

The type of a resolver implementation.

## Constructor & Destructor Documentation

template<typename InternetProtocol>

asio::ip::resolver_service< InternetProtocol >::resolver_service | ( | asio::io_service & | io_service | ) | `[explicit]`

Construct a new resolver service for the specified io_service.

## Member Function Documentation

template<typename InternetProtocol>

void asio::ip::resolver_service< InternetProtocol >::shutdown_service | ( |  | ) | `[virtual]`

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

Implements asio::io_service::service.

template<typename InternetProtocol>

void asio::ip::resolver_service< InternetProtocol >::construct | ( | implementation_type & | impl | ) |

Construct a new resolver implementation.

template<typename InternetProtocol>

void asio::ip::resolver_service< InternetProtocol >::destroy | ( | implementation_type & | impl | ) |

Destroy a resolver implementation.

template<typename InternetProtocol>

void asio::ip::resolver_service< InternetProtocol >::cancel | ( | implementation_type & | impl | ) |

Cancel pending asynchronous operations.

template<typename InternetProtocol>

iterator_type asio::ip::resolver_service< InternetProtocol >::resolve | ( | implementation_type & | impl,
|  | const query_type & | query,
|  | asio::error_code & | ec |
| ) |  |  |

Resolve a query to a list of entries.

template<typename InternetProtocol>
template<typename Handler>

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

Asynchronously resolve a query to a list of entries.

template<typename InternetProtocol>

iterator_type asio::ip::resolver_service< InternetProtocol >::resolve | ( | implementation_type & | impl,
|  | const endpoint_type & | endpoint,
|  | asio::error_code & | ec |
| ) |  |  |

Resolve an endpoint to a list of entries.

template<typename InternetProtocol>
template<typename ResolveHandler>

void asio::ip::resolver_service< InternetProtocol >::async_resolve | ( | implementation_type & | impl,
|  | const endpoint_type & | endpoint,
|  | ResolveHandler | handler |
| ) |  |  |

Asynchronously resolve an endpoint to a list of entries.

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

Get the io_service object that owns the service.

## Member Data Documentation

template<typename InternetProtocol>

asio::io_service::id asio::ip::resolver_service< InternetProtocol >::id`[static]`

The unique service identifier.

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