#include <monero_daemon_model.h>
|
| rapidjson::Value | to_rapidjson_val (rapidjson::Document::AllocatorType &allocator) const override |
| |
| std::string | serialize () const |
| |
|
|
static void | from_property_tree (const boost::property_tree::ptree &node, const std::shared_ptr< monero_peer > &peer) |
| |
|
|
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_type > | m_connection_type |
| |
Models a peer to the daemon.
◆ 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
-
| allocator | is 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: