rippled
Loading...
Searching...
No Matches
SourceStrings.h
1#pragma once
2
3#include <xrpld/peerfinder/detail/Source.h>
4
5#include <memory>
6
7namespace xrpl {
8namespace PeerFinder {
9
11class SourceStrings : public Source
12{
13public:
14 explicit SourceStrings() = default;
15
17
19 New(std::string const& name, Strings const& strings);
20};
21
22} // namespace PeerFinder
23} // namespace xrpl
Provides addresses from a static set of strings.
static std::shared_ptr< Source > New(std::string const &name, Strings const &strings)
A static or dynamic source of peer addresses.
Definition Source.h:19
virtual std::string const & name()=0
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5