asio C++ library

PrevUpHomeNext
ip::basic_resolver::resolve (2 of 12 overloads)

(Deprecated: Use overload with separate host and service parameters.) Perform forward resolution of a query to a list of entries.

results_type resolve(
    const query & q,
    asio::error_code & ec);

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

Parameters

q

A query object that determines what endpoints will be returned.

ec

Set to indicate what error occurred, if any.

Return Value

A range object representing the list of endpoint entries. An empty range is returned if an error occurs. A successful call to this function is guaranteed to return a non-empty range.


PrevUpHomeNext