rippled
Loading...
Searching...
No Matches
Store.h
1#ifndef XRPL_PEERFINDER_STORE_H_INCLUDED
2#define XRPL_PEERFINDER_STORE_H_INCLUDED
3
4namespace ripple {
5namespace PeerFinder {
6
8class Store
9{
10public:
11 virtual ~Store()
12 {
13 }
14
15 // load the bootstrap cache
17 virtual std::size_t
18 load(load_callback const& cb) = 0;
19
20 // save the bootstrap cache
21 struct Entry
22 {
23 explicit Entry() = default;
24
27 };
28 virtual void
29 save(std::vector<Entry> const& v) = 0;
30};
31
32} // namespace PeerFinder
33} // namespace ripple
34
35#endif
A version-independent IP address and port combination.
Definition IPEndpoint.h:19
Abstract persistence for PeerFinder data.
Definition Store.h:9
virtual void save(std::vector< Entry > const &v)=0
virtual std::size_t load(load_callback const &cb)=0
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
beast::IP::Endpoint endpoint
Definition Store.h:25