rippled
Loading...
Searching...
No Matches
BookListeners.h
1#pragma once
2
3#include <xrpl/protocol/MultiApiJson.h>
4#include <xrpl/server/InfoSub.h>
5
6#include <memory>
7#include <mutex>
8
9namespace xrpl {
10
13{
14public:
16
18 {
19 }
20
23 void
25
28 void
30
42 void
43 publish(MultiApiJson const& jvObj, hash_set<std::uint64_t>& havePublished);
44
45private:
47
49};
50
51} // namespace xrpl
Listen to public/subscribe messages from a book.
std::recursive_mutex mLock
void removeSubscriber(std::uint64_t sub)
Stop publishing to a subscriber.
void addSubscriber(InfoSub::ref sub)
Add a new subscription for this book.
void publish(MultiApiJson const &jvObj, hash_set< std::uint64_t > &havePublished)
Publish a transaction to subscribers.
hash_map< std::uint64_t, InfoSub::wptr > mListeners
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5