rippled
Loading...
Searching...
No Matches
RPCSub.h
1#pragma once
2
3#include <xrpl/core/JobQueue.h>
4#include <xrpl/server/InfoSub.h>
5
6#include <boost/asio/io_context.hpp>
7
8namespace xrpl {
9
11class RPCSub : public InfoSub
12{
13public:
14 virtual void
15 setUsername(std::string const& strUsername) = 0;
16 virtual void
17 setPassword(std::string const& strPassword) = 0;
18
19protected:
20 explicit RPCSub(InfoSub::Source& source);
21};
22
23// VFALCO Why is the io_context needed?
26 InfoSub::Source& source,
27 boost::asio::io_context& io_context,
28 JobQueue& jobQueue,
29 std::string const& strUrl,
30 std::string const& strUsername,
31 std::string const& strPassword,
32 Logs& logs);
33
34} // namespace xrpl
Abstracts the source of subscription data.
Definition InfoSub.h:47
Manages a client's subscription to data feeds.
Definition InfoSub.h:31
A pool of threads to perform work.
Definition JobQueue.h:37
Manages partitions for logging.
Definition Log.h:32
Subscription object for JSON RPC.
Definition RPCSub.h:12
virtual void setUsername(std::string const &strUsername)=0
virtual void setPassword(std::string const &strPassword)=0
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
std::shared_ptr< RPCSub > make_RPCSub(InfoSub::Source &source, boost::asio::io_context &io_context, JobQueue &jobQueue, std::string const &strUrl, std::string const &strUsername, std::string const &strPassword, Logs &logs)
Definition RPCSub.cpp:173