Perform forward resolution of a query to a list of entries.
iterator resolve( const query & q, boost::system::error_code & ec);
This function is used to resolve a query into a list of endpoint entries.
A query object that determines what endpoints will be returned.
Set to indicate what error occurred, if any.
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.