Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
ip::basic_resolver::resolve (4 of 4 overloads)

Perform reverse resolution of an endpoint to a list of entries.

iterator resolve(
    const endpoint_type & e,
    boost::system::error_code & ec);

This function is used to resolve an endpoint into a list of endpoint entries.



An endpoint object that determines what endpoints will be returned.


Set to indicate what error occurred, if any.

Return Value

A forward-only iterator that can be used to traverse the list of endpoint entries. Returns a default constructed iterator if an error occurs.


A default constructed iterator represents the end of the list.

A successful call to this function is guaranteed to return at least one entry.