rippled
Loading...
Searching...
No Matches
SourceStrings.h
1#ifndef XRPL_PEERFINDER_SOURCESTRINGS_H_INCLUDED
2#define XRPL_PEERFINDER_SOURCESTRINGS_H_INCLUDED
3
4#include <xrpld/peerfinder/detail/Source.h>
5
6#include <memory>
7
8namespace ripple {
9namespace PeerFinder {
10
12class SourceStrings : public Source
13{
14public:
15 explicit SourceStrings() = default;
16
18
20 New(std::string const& name, Strings const& strings);
21};
22
23} // namespace PeerFinder
24} // namespace ripple
25
26#endif
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:20
virtual std::string const & name()=0
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6