explicit basic_resolver(const executor_type& ex) 和 template <typename ExecutionContext> 和 basic_resolver(basic_resolver&& other) 和 basic_resolver& operator=(basic_resolver&& other) |
创建basic_resolver |
executor_type get_executor() | 获取执行器 |
void cancel() | 取消异步操作 |
results_type resolve(const query& q) | 域名解析 |
results_type resolve(const query& q, boost::system::error_code& ec) | ec: 表示错误信息 |
results_type resolve(BOOST_ASIO_STRING_VIEW_PARAM host, BOOST_ASIO_STRING_VIEW_PARAM service) |
host: 识别本机名称的字符串 service:识别服务器的字符串 |
results_type resolve(BOOST_ASIO_STRING_VIEW_PARAM host, BOOST_ASIO_STRING_VIEW_PARAM service, boost::system::error_code& ec) |
同上, ec: 表示错误信息 |
results_type resolve(BOOST_ASIO_STRING_VIEW_PARAM host, BOOST_ASIO_STRING_VIEW_PARAM service, resolver_base::flags resolve_flags) |
resolve_flags: 确定如何名称解析的标志集合 |
results_type resolve(BOOST_ASIO_STRING_VIEW_PARAM host, BOOST_ASIO_STRING_VIEW_PARAM service, resolver_base::flags resolve_flags, boost::system::error_code& ec) |
同上, ec: 表示错误信息 |
results_type resolve(const protocol_type& protocol, BOOST_ASIO_STRING_VIEW_PARAM host, BOOST_ASIO_STRING_VIEW_PARAM service) |
protocol: ipv4 或 ipv6 |
results_type resolve(const protocol_type& protocol, BOOST_ASIO_STRING_VIEW_PARAM host, BOOST_ASIO_STRING_VIEW_PARAM service, boost::system::error_code& ec) |
同上, ec: 表示错误信息 |
results_type resolve(const protocol_type& protocol, BOOST_ASIO_STRING_VIEW_PARAM host, BOOST_ASIO_STRING_VIEW_PARAM service, resolver_base::flags resolve_flags) |
- |
results_type resolve(const protocol_type& protocol, BOOST_ASIO_STRING_VIEW_PARAM host, BOOST_ASIO_STRING_VIEW_PARAM service, resolver_base::flags resolve_flags, boost::system::error_code& ec) |
- |
template <typename ResolveHandler> BOOST_ASIO_INITFN_RESULT_TYPE(ResolveHandler, void (boost::system::error_code, results_type)) async_resolve(const query& q, BOOST_ASIO_MOVE_ARG(ResolveHandler) handler) |
Handler类型: void handler(const boost::system::error_code& error, resolver::results_type results ); |
template <typename ResolveHandler> BOOST_ASIO_INITFN_RESULT_TYPE(ResolveHandler, void (boost::system::error_code, results_type)) async_resolve(BOOST_ASIO_STRING_VIEW_PARAM host, BOOST_ASIO_STRING_VIEW_PARAM service, BOOST_ASIO_MOVE_ARG(ResolveHandler) handler) |
|
template <typename ResolveHandler> BOOST_ASIO_INITFN_RESULT_TYPE(ResolveHandler, void (boost::system::error_code, results_type)) async_resolve(BOOST_ASIO_STRING_VIEW_PARAM host, BOOST_ASIO_STRING_VIEW_PARAM service, resolver_base::flags resolve_flags, BOOST_ASIO_MOVE_ARG(ResolveHandler) handler) |
|
template <typename ResolveHandler> BOOST_ASIO_INITFN_RESULT_TYPE(ResolveHandler, void (boost::system::error_code, results_type)) async_resolve(const protocol_type& protocol, BOOST_ASIO_STRING_VIEW_PARAM host, BOOST_ASIO_STRING_VIEW_PARAM service, BOOST_ASIO_MOVE_ARG(ResolveHandler) handler) |
异步域名解析 |
template <typename ResolveHandler> BOOST_ASIO_INITFN_RESULT_TYPE(ResolveHandler, void (boost::system::error_code, results_type)) async_resolve(const protocol_type& protocol, BOOST_ASIO_STRING_VIEW_PARAM host, BOOST_ASIO_STRING_VIEW_PARAM service, resolver_base::flags resolve_flags, BOOST_ASIO_MOVE_ARG(ResolveHandler) handler) |
异步域名解析 |
results_type resolve(const endpoint_type& e) | 反域名解析 |
results_type resolve(const endpoint_type& e, boost::system::error_code& ec) | 反域名解析 |
template <typename ResolveHandler> BOOST_ASIO_INITFN_RESULT_TYPE(ResolveHandler, void (boost::system::error_code, results_type)) async_resolve(const endpoint_type& e, BOOST_ASIO_MOVE_ARG(ResolveHandler) handler) |
反域名解析 |