xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
include
xrpl
basics
Resolver.h
1
#pragma once
2
3
#include <xrpl/beast/net/IPEndpoint.h>
4
5
#include <
functional
>
6
#include <
string
>
7
#include <
vector
>
8
9
namespace
xrpl
{
10
11
class
Resolver
12
{
13
public
:
14
using
HandlerType
=
std::function
<void(
std::string
,
std::vector<beast::ip::Endpoint>
)>;
15
16
virtual
~Resolver
() = 0;
17
21
virtual
void
22
stopAsync
() = 0;
23
27
virtual
void
28
stop
() = 0;
29
33
virtual
void
34
start
() = 0;
35
42
template
<
class
Handler>
43
void
44
resolve
(
std::vector<std::string>
const
& names, Handler handler)
45
{
46
resolve
(names,
HandlerType
(handler));
47
}
48
49
virtual
void
50
resolve
(
std::vector<std::string>
const
& names,
HandlerType
const
& handler) = 0;
52
};
53
54
}
// namespace xrpl
std::string
xrpl::Resolver
Definition
Resolver.h:12
xrpl::Resolver::HandlerType
std::function< void(std::string, std::vector< beast::ip::Endpoint >)> HandlerType
Definition
Resolver.h:14
xrpl::Resolver::~Resolver
virtual ~Resolver()=0
xrpl::Resolver::start
virtual void start()=0
Issue a synchronous start request.
xrpl::Resolver::resolve
void resolve(std::vector< std::string > const &names, Handler handler)
resolve all hostnames on the list
Definition
Resolver.h:44
xrpl::Resolver::resolve
virtual void resolve(std::vector< std::string > const &names, HandlerType const &handler)=0
xrpl::Resolver::stopAsync
virtual void stopAsync()=0
Issue an asynchronous stop request.
xrpl::Resolver::stop
virtual void stop()=0
Issue a synchronous stop request.
std::function
functional
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
string
vector
Generated by
1.17.0