My Project: dht::http::Resolver Class Reference

My Project 3.7.7 C++ Distributed Hash Table

Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
dht::http::Resolver Class Reference

## Public Types
using | ResolverCb = std::function<void(const asio::error_code& ec, const std::vector<asio::ip::tcp::endpoint>& endpoints)>

## Public Member Functions
| Resolver (asio::io_context &ctx, const std::string &url, std::shared_ptr< log::Logger > logger={})
| Resolver (asio::io_context &ctx, std::string_view host, std::string_view service, const bool ssl=false, std::shared_ptr< log::Logger > logger={})
| Resolver (asio::io_context &ctx, std::vector< asio::ip::tcp::endpoint > endpoints, const bool ssl=false, std::shared_ptr< log::Logger > logger={})
| Resolver (asio::io_context &ctx, const std::string &url, std::vector< asio::ip::tcp::endpoint > endpoints, std::shared_ptr< log::Logger > logger={})
const Url & | get_url () const
void | add_callback (ResolverCb cb, sa_family_t family=AF_UNSPEC)
std::shared_ptr< log::Logger > | getLogger () const
void | cancel ()

## Detailed Description

Definition at line 146 of file http.h.

## Member Typedef Documentation

## ◆ ResolverCb

using dht::http::Resolver::ResolverCb = std::function<void(const asio::error_code& ec, const std::vector<asio::ip::tcp::endpoint>& endpoints)>

Definition at line 149 of file http.h.

## Member Function Documentation

## ◆ get_url()

const Url & dht::http::Resolver::get_url | ( |  | ) | const
| inline

Definition at line 170 of file http.h.

## ◆ getLogger()

std::shared_ptr< log::Logger > dht::http::Resolver::getLogger | ( |  | ) | const
| inline

Definition at line 174 of file http.h.

The documentation for this class was generated from the following file:

- /home/noptrix/ba/blackarch/packages/opendht-c/src/opendht/include/opendht/http.h