|
xrpld
|
#include <WSInfoSub.h>


Public Types | |
| using | pointer = std::shared_ptr<InfoSub> |
| using | wptr = std::weak_ptr<InfoSub> |
| using | ref = std::shared_ptr<InfoSub> const& |
| using | Consumer = Resource::Consumer |
Public Member Functions | |
| WSInfoSub (Source &source, std::shared_ptr< WSSession > const &ws) | |
| std::string_view | user () const |
| std::string_view | forwardedFor () const |
| void | send (json::Value const &jv, bool) override |
| Consumer & | getConsumer () |
| std::uint64_t | getSeq () const |
| void | onSendEmpty () |
| void | insertSubAccountInfo (AccountID const &account, bool rt) |
| void | deleteSubAccountInfo (AccountID const &account, bool rt) |
| void | insertBookSubscription (Book const &book) |
Record that this subscriber is following book. | |
| void | deleteBookSubscription (Book const &book) |
Stop tracking book for this subscriber. | |
| bool | insertSubAccountHistory (AccountID const &account) |
| void | deleteSubAccountHistory (AccountID const &account) |
| void | clearRequest () |
| void | setRequest (std::shared_ptr< InfoSubRequest > const &req) |
| std::shared_ptr< InfoSubRequest > const & | getRequest () |
| void | setApiVersion (unsigned int apiVersion) |
| unsigned int | getApiVersion () const noexcept |
Public Attributes | |
| friend | Object |
Protected Attributes | |
| std::mutex | lock_ |
Static Private Member Functions | |
| static int | assignId () |
| static auto & | getCounter () noexcept |
Private Attributes | |
| std::weak_ptr< WSSession > | ws_ |
| std::string | user_ |
| std::string | fwdfor_ |
| Consumer | consumer_ |
| Source & | source_ |
| hash_set< AccountID > | realTimeSubscriptions_ |
| hash_set< AccountID > | normalSubscriptions_ |
| std::shared_ptr< InfoSubRequest > | request_ |
| std::uint64_t | seq_ |
| hash_set< AccountID > | accountHistorySubscriptions_ |
| hash_set< Book > | bookSubscriptions_ |
| unsigned int | apiVersion_ = 0 |
Definition at line 15 of file WSInfoSub.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| xrpl::WSInfoSub::WSInfoSub | ( | Source & | source, |
| std::shared_ptr< WSSession > const & | ws ) |
Definition at line 22 of file WSInfoSub.h.
|
nodiscard |
Definition at line 38 of file WSInfoSub.h.
|
nodiscard |
Definition at line 44 of file WSInfoSub.h.
|
overridevirtual |
Implements xrpl::InfoSub.
Definition at line 50 of file WSInfoSub.h.
|
inherited |
Definition at line 108 of file InfoSub.cpp.
|
nodiscardinherited |
Definition at line 114 of file InfoSub.cpp.
|
inherited |
Definition at line 120 of file InfoSub.cpp.
|
inherited |
Definition at line 125 of file InfoSub.cpp.
|
inherited |
Definition at line 140 of file InfoSub.cpp.
|
inherited |
Record that this subscriber is following book.
Called by NetworkOPsImp::subBook so that ~InfoSub() can issue a matching unsubBook for every book this subscriber is tracking, keeping per-subscriber state symmetric with the server-side map.
| book | The order book this subscriber has just subscribed to. |
Definition at line 169 of file InfoSub.cpp.
|
inherited |
Stop tracking book for this subscriber.
Called by the unsubscribe RPC handler so that the book is not re-unsubscribed by ~InfoSub(). Pairs with insertBookSubscription.
| book | The order book to forget. |
book was not previously inserted. Definition at line 176 of file InfoSub.cpp.
|
inherited |
Definition at line 155 of file InfoSub.cpp.
|
inherited |
Definition at line 162 of file InfoSub.cpp.
|
inherited |
Definition at line 183 of file InfoSub.cpp.
|
inherited |
Definition at line 189 of file InfoSub.cpp.
|
inherited |
Definition at line 195 of file InfoSub.cpp.
|
inherited |
Definition at line 201 of file InfoSub.cpp.
|
nodiscardnoexceptinherited |
Definition at line 207 of file InfoSub.cpp.
|
staticprivatenoexceptinherited |
Definition at line 109 of file CountedObject.h.
|
private |
Definition at line 17 of file WSInfoSub.h.
|
private |
Definition at line 18 of file WSInfoSub.h.
|
private |
Definition at line 19 of file WSInfoSub.h.
|
protectedinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
inherited |
Definition at line 134 of file CountedObject.h.