Monero C++ Library
Loading...
Searching...
No Matches
monero::monero_peer Struct Reference

#include <monero_daemon_model.h>

Inheritance diagram for monero::monero_peer:
monero::serializable_struct

Public Member Functions

rapidjson::Value to_rapidjson_val (rapidjson::Document::AllocatorType &allocator) const override
 
- Public Member Functions inherited from monero::serializable_struct
std::string serialize () const
 

Static Public Member Functions

static void from_property_tree (const boost::property_tree::ptree &node, const std::shared_ptr< monero_peer > &peer)
 

Public Attributes

boost::optional< std::string > m_id
 
boost::optional< std::string > m_address
 
boost::optional< std::string > m_host
 
boost::optional< int > m_port
 
boost::optional< bool > m_is_online
 
boost::optional< uint64_t > m_last_seen_timestamp
 
boost::optional< int > m_pruning_seed
 
boost::optional< int > m_rpc_port
 
boost::optional< uint64_t > m_rpc_credits_per_hash
 
boost::optional< std::string > m_hash
 
boost::optional< uint64_t > m_avg_download
 
boost::optional< uint64_t > m_avg_upload
 
boost::optional< uint64_t > m_current_download
 
boost::optional< uint64_t > m_current_upload
 
boost::optional< uint64_t > m_height
 
boost::optional< bool > m_is_incoming
 
boost::optional< uint64_t > m_live_time
 
boost::optional< bool > m_is_local_ip
 
boost::optional< bool > m_is_local_host
 
boost::optional< uint64_t > m_num_receives
 
boost::optional< uint64_t > m_num_sends
 
boost::optional< uint64_t > m_receive_idle_time
 
boost::optional< uint64_t > m_send_idle_time
 
boost::optional< std::string > m_state
 
boost::optional< int > m_num_support_flags
 
boost::optional< monero_connection_typem_connection_type
 

Detailed Description

Models a peer to the daemon.

Member Function Documentation

◆ to_rapidjson_val()

rapidjson::Value monero::monero_peer::to_rapidjson_val ( rapidjson::Document::AllocatorType & allocator) const
overridevirtual

Converts the struct to a rapidjson Value.

Parameters
allocatoris the rapidjson document allocator
Returns
the struct as a rapidjson Value

Implements monero::serializable_struct.


The documentation for this struct was generated from the following files: