|
xrpld
|


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 | |
| RPCSubImp (InfoSub::Source &source, boost::asio::io_context &ioContext, JobQueue &jobQueue, std::string const &strUrl, std::string strUsername, std::string strPassword, ServiceRegistry ®istry) | |
| ~RPCSubImp () override=default | |
| void | send (json::Value const &jvObj, bool broadcast) override |
| void | setUsername (std::string const &strUsername) override |
| void | setPassword (std::string const &strPassword) 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_ |
Private Member Functions | |
| void | sendThread () |
Static Private Member Functions | |
| static int | assignId () |
| static auto & | getCounter () noexcept |
Private Attributes | |
| boost::asio::io_context & | ioContext_ |
| JobQueue & | jobQueue_ |
| std::string | url_ |
| std::string | ip_ |
| std::uint16_t | port_ |
| bool | ssl_ {false} |
| std::string | username_ |
| std::string | password_ |
| std::string | path_ |
| int | seq_ |
| bool | sending_ {false} |
| std::deque< std::pair< int, json::Value > > | deque_ |
| beast::Journal const | j_ |
| Logs & | logs_ |
| Consumer | consumer_ |
| Source & | source_ |
| hash_set< AccountID > | realTimeSubscriptions_ |
| hash_set< AccountID > | normalSubscriptions_ |
| std::shared_ptr< InfoSubRequest > | request_ |
| hash_set< AccountID > | accountHistorySubscriptions_ |
| hash_set< Book > | bookSubscriptions_ |
| unsigned int | apiVersion_ = 0 |
Definition at line 30 of file RPCSub.cpp.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| xrpl::RPCSubImp::RPCSubImp | ( | InfoSub::Source & | source, |
| boost::asio::io_context & | ioContext, | ||
| JobQueue & | jobQueue, | ||
| std::string const & | strUrl, | ||
| std::string | strUsername, | ||
| std::string | strPassword, | ||
| ServiceRegistry & | registry ) |
Definition at line 33 of file RPCSub.cpp.
|
overridedefault |
|
overridevirtual |
Implements xrpl::InfoSub.
Definition at line 85 of file RPCSub.cpp.
|
overridevirtual |
Implements xrpl::RPCSub.
Definition at line 105 of file RPCSub.cpp.
|
overridevirtual |
Implements xrpl::RPCSub.
Definition at line 113 of file RPCSub.cpp.
|
private |
Definition at line 124 of file RPCSub.cpp.
|
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 183 of file RPCSub.cpp.
|
private |
Definition at line 184 of file RPCSub.cpp.
|
private |
Definition at line 186 of file RPCSub.cpp.
|
private |
Definition at line 187 of file RPCSub.cpp.
|
private |
Definition at line 188 of file RPCSub.cpp.
|
private |
Definition at line 189 of file RPCSub.cpp.
|
private |
Definition at line 190 of file RPCSub.cpp.
|
private |
Definition at line 191 of file RPCSub.cpp.
|
private |
Definition at line 192 of file RPCSub.cpp.
|
private |
Definition at line 194 of file RPCSub.cpp.
|
private |
Definition at line 196 of file RPCSub.cpp.
|
private |
Definition at line 198 of file RPCSub.cpp.
|
private |
Definition at line 200 of file RPCSub.cpp.
|
private |
Definition at line 201 of file RPCSub.cpp.
|
protectedinherited |
|
privateinherited |
|
privateinherited |
|
inherited |
Definition at line 134 of file CountedObject.h.