rippled
Loading...
Searching...
No Matches
RPCSub.h
1#ifndef XRPL_NET_RPCSUB_H_INCLUDED
2#define XRPL_NET_RPCSUB_H_INCLUDED
3
4#include <xrpld/rpc/InfoSub.h>
5
6#include <xrpl/core/JobQueue.h>
7
8#include <boost/asio/io_context.hpp>
9
10namespace xrpl {
11
13class RPCSub : public InfoSub
14{
15public:
16 virtual void
17 setUsername(std::string const& strUsername) = 0;
18 virtual void
19 setPassword(std::string const& strPassword) = 0;
20
21protected:
22 explicit RPCSub(InfoSub::Source& source);
23};
24
25// VFALCO Why is the io_context needed?
28 InfoSub::Source& source,
29 boost::asio::io_context& io_context,
30 JobQueue& jobQueue,
31 std::string const& strUrl,
32 std::string const& strUsername,
33 std::string const& strPassword,
34 Logs& logs);
35
36} // namespace xrpl
37
38#endif
Abstracts the source of subscription data.
Definition InfoSub.h:49
Manages a client's subscription to data feeds.
Definition InfoSub.h:33
A pool of threads to perform work.
Definition JobQueue.h:38
Manages partitions for logging.
Definition Log.h:33
Subscription object for JSON RPC.
Definition RPCSub.h:14
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:6
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:189