Electroneum
Loading...
Searching...
No Matches
daemonize::t_internals Struct Reference
Collaboration diagram for daemonize::t_internals:

Public Member Functions

 t_internals (boost::program_options::variables_map const &vm)

Public Attributes

t_core core
t_p2p p2p
std::vector< std::unique_ptr< t_rpc > > rpcs

Detailed Description

Definition at line 61 of file daemon.cpp.

Constructor & Destructor Documentation

◆ t_internals()

daemonize::t_internals::t_internals ( boost::program_options::variables_map const & vm)
inline

Definition at line 69 of file daemon.cpp.

72 : core{vm}
74 , p2p{vm, protocol}
75 {
76 // Handle circular dependencies
77 protocol.set_p2p_endpoint(p2p.get());
78 core.set_protocol(protocol.get());
79
82 rpcs.emplace_back(new t_rpc{vm, core, p2p, restricted, main_rpc_port, "core"});
83
85 if(!command_line::is_arg_defaulted(vm, restricted_rpc_port_arg))
86 {
87 auto restricted_rpc_port = command_line::get_arg(vm, restricted_rpc_port_arg);
88 rpcs.emplace_back(new t_rpc{vm, core, p2p, true, restricted_rpc_port, "restricted"});
89 }
90 }
static const command_line::arg_descriptor< std::string, false, true, 2 > arg_rpc_bind_port
static const command_line::arg_descriptor< std::string > arg_rpc_restricted_bind_port
static const command_line::arg_descriptor< bool > arg_restricted_rpc
bool is_arg_defaulted(const boost::program_options::variables_map &vm, const arg_descriptor< T, required, dependent, NUM_DEPS > &arg)
T get_arg(const boost::program_options::variables_map &vm, const arg_descriptor< T, false, true > &arg)
const command_line::arg_descriptor< bool > arg_offline
std::vector< std::unique_ptr< t_rpc > > rpcs
Definition daemon.cpp:67
Here is the call graph for this function:

Member Data Documentation

◆ core

t_core daemonize::t_internals::core

Definition at line 65 of file daemon.cpp.

◆ p2p

t_p2p daemonize::t_internals::p2p

Definition at line 66 of file daemon.cpp.

◆ rpcs

std::vector<std::unique_ptr<t_rpc> > daemonize::t_internals::rpcs

Definition at line 67 of file daemon.cpp.


The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/daemon/daemon.cpp