55 item_id(uint32_t type,
const item_hash_t& hash) :
110 :block(blk),block_id(blk.id()){}
126 item_type(item_type),
127 item_hashes_available(item_hashes_available)
142 const std::vector<item_hash_t>& item_hashes_available) :
143 total_remaining_item_count(total_remaining_item_count),
144 item_type(item_type),
145 item_hashes_available(item_hashes_available)
158 item_type(item_type),
159 blockchain_synopsis(blockchain_synopsis)
172 item_type(item_type),
173 items_to_fetch(items_to_fetch)
185 requested_item(requested_item)
205 uint32_t core_protocol_version,
207 uint16_t inbound_port,
208 uint16_t outbound_port,
209 const node_id_t& node_public_key,
213 user_agent(user_agent),
214 core_protocol_version(core_protocol_version),
215 inbound_address(inbound_address),
216 inbound_port(inbound_port),
217 outbound_port(outbound_port),
218 node_public_key(node_public_key),
219 signed_shared_secret(signed_shared_secret),
220 chain_id(chain_id_arg),
254 const std::string& reason_string) :
255 user_agent(user_agent),
256 core_protocol_version(core_protocol_version),
257 remote_endpoint(remote_endpoint),
258 reason_code(reason_code),
259 reason_string(reason_string)
286 const node_id_t& node_id,
289 remote_endpoint(remote_endpoint),
290 last_seen_time(last_seen_time),
293 direction(direction),
294 firewalled(firewalled)
315 bool closing_due_to_error =
false,
317 reason_for_closing(reason_for_closing),
318 closing_due_to_error(closing_due_to_error),
330 request_sent_time(request_sent_time)
345 request_sent_time(request_sent_time),
346 request_received_time(request_received_time),
347 reply_transmitted_time(reply_transmitted_time)
490 #include <unordered_map> 496 struct hash<graphene::net::item_id>
uint32_t connection_duration
uint32_t core_protocol_version
fc::ip::endpoint remote_endpoint
block_message(const signed_block &blk)
bool closing_due_to_error
fc::enum_type< uint8_t, firewalled_state > firewalled
static const core_message_type_enum type
const uint32_t core_protocol_version
item_ids_inventory_message()
blockchain_item_ids_inventory_message(uint32_t total_remaining_item_count, uint32_t item_type, const std::vector< item_hash_t > &item_hashes_available)
size_t city_hash_size_t(const char *buf, size_t len)
current_time_request_message(const fc::time_point request_sent_time)
current_time_reply_message()
current_time_reply_message(const fc::time_point request_sent_time, const fc::time_point request_received_time, const fc::time_point reply_transmitted_time=fc::time_point())
An order-perserving dictionary of variant's.
static const core_message_type_enum type
item_id(uint32_t type, const item_hash_t &hash)
connection_accepted_message()
static const core_message_type_enum type
fc::time_point request_sent_time
fc::time_point request_received_time
closing_connection_message(const std::string &reason_for_closing, bool closing_due_to_error=false, const fc::oexception &error=fc::oexception())
peer_connection_direction
blockchain_item_ids_inventory_message()
fc::enum_type< uint8_t, peer_connection_direction > connection_direction
uint32_t upload_rate_one_hour
address_request_message()
static const core_message_type_enum type
std::vector< item_hash_t > blockchain_synopsis
uint32_t download_rate_one_minute
connection_rejected_message()
std::vector< item_hash_t > items_to_fetch
std::vector< item_hash_t > item_hashes_available
std::vector< item_hash_t > item_hashes_available
fc::ripemd160 item_hash_t
fc::ripemd160 block_id_type
std::vector< address_info > addresses
fc::ip::endpoint remote_endpoint
static const core_message_type_enum type
provides stack-based nullable value similar to boost::optional
uint32_t download_rate_fifteen_minutes
graphene::protocol::precomputable_transaction trx
FC_REFLECT_TYPENAME(fc::log_message)
FC_REFLECT_ENUM(graphene::net::core_message_type_enum,(trx_message_type)(block_message_type)(core_message_type_first)(item_ids_inventory_message_type)(blockchain_item_ids_inventory_message_type)(fetch_blockchain_item_ids_message_type)(fetch_items_message_type)(item_not_available_message_type)(hello_message_type)(connection_accepted_message_type)(connection_rejected_message_type)(address_request_message_type)(address_message_type)(closing_connection_message_type)(current_time_request_message_type)(current_time_reply_message_type)(check_firewall_message_type)(check_firewall_reply_message_type)(get_current_connections_request_message_type)(get_current_connections_reply_message_type)(core_message_type_last))(different_chain)(already_connected)(connected_to_self)(not_accepting_connections)(blocked)(invalid_hello_message)(client_too_old))(inbound)(outbound))(firewalled)(not_firewalled))(unable_to_connect)(connection_successful)) namespace std
std::string reason_for_closing
static const core_message_type_enum type
fc::enum_type< uint8_t, firewall_check_result > result
fc::ip::endpoint remote_endpoint
static const core_message_type_enum type
fetch_blockchain_item_ids_message(uint32_t item_type, const std::vector< item_hash_t > &blockchain_synopsis)
static const core_message_type_enum type
std::string reason_string
fc::ecc::compact_signature signed_shared_secret
#define GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(type)
fc::ip::address inbound_address
fc::ecc::public_key_data node_id_t
address_info(const fc::ip::endpoint &remote_endpoint, const fc::time_point_sec last_seen_time, const fc::microseconds latency, const node_id_t &node_id, peer_connection_direction direction, firewalled_state firewalled)
fc::variant_object user_data
item_ids_inventory_message(uint32_t item_type, const std::vector< item_hash_t > &item_hashes_available)
item_not_available_message(const item_id &requested_item)
hello_message(const std::string &user_agent, uint32_t core_protocol_version, const fc::ip::address &inbound_address, uint16_t inbound_port, uint16_t outbound_port, const node_id_t &node_public_key, const fc::ecc::compact_signature &signed_shared_secret, const fc::sha256 &chain_id_arg, const fc::variant_object &user_data)
trx_message(const graphene::protocol::signed_transaction &signed_trx)
fetch_items_message(uint32_t item_type, const std::vector< item_hash_t > &items_to_fetch)
adds a signature to a transaction
fetch_blockchain_item_ids_message()
static const core_message_type_enum type
static const core_message_type_enum type
uint32_t upload_rate_one_minute
static const core_message_type_enum type
static const core_message_type_enum type
Defines exception's used by fc.
static const core_message_type_enum type
#define GRAPHENE_NET_PROTOCOL_VERSION
item_not_available_message()
static const core_message_type_enum type
uint32_t total_remaining_item_count
closing_connection_message()
fc::enum_type< uint8_t, peer_connection_direction > direction
static const core_message_type_enum type
fc::microseconds round_trip_delay
static const core_message_type_enum type
node_id_t node_public_key
std::vector< current_connection_data > current_connections
connection_rejected_message(const std::string &user_agent, uint32_t core_protocol_version, const fc::ip::endpoint &remote_endpoint, rejection_reason_code reason_code, const std::string &reason_string)
uint32_t download_rate_one_hour
static const core_message_type_enum type
static const core_message_type_enum type
fc::ip::endpoint endpoint_checked
current_time_request_message()
fc::enum_type< uint8_t, firewalled_state > firewalled
uint32_t upload_rate_fifteen_minutes
fc::ripemd160 transaction_id_type
fc::ip::endpoint endpoint_to_check
fc::time_point_sec last_seen_time
uint32_t core_protocol_version
fc::time_point reply_transmitted_time
fc::enum_type< uint8_t, rejection_reason_code > reason_code
fc::microseconds clock_offset
fc::time_point request_sent_time
static const core_message_type_enum type
fc::variant_object user_data
bool operator==(const item_id &other) const