BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
core_messages.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Cryptonomex, Inc., and contributors.
3  *
4  * The MIT License
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to deal
8  * in the Software without restriction, including without limitation the rights
9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in
14  * all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22  * THE SOFTWARE.
23  */
25 
26 #include <fc/io/raw.hpp>
27 
28 namespace graphene { namespace net {
29 
49 
50 } } // graphene::net
51 
53 FC_REFLECT_DERIVED_NO_TYPENAME( graphene::net::block_message, BOOST_PP_SEQ_NIL, (block)(block_id) )
54 
56  (item_type)
57  (item_hash) )
59  (item_type)
60  (item_hashes_available) )
62  (total_remaining_item_count)
63  (item_type)
64  (item_hashes_available) )
66  (item_type)
67  (blockchain_synopsis) )
69  (item_type)
70  (items_to_fetch) )
73  (user_agent)
75  (inbound_address)
76  (inbound_port)
77  (outbound_port)
78  (node_public_key)
79  (signed_shared_secret)
80  (chain_id)
81  (user_data) )
82 
85  (user_agent)
87  (remote_endpoint)
88  (reason_code)
89  (reason_string))
92  (remote_endpoint)
93  (last_seen_time)
94  (latency)
95  (node_id)
96  (direction)
97  (firewalled) )
98 FC_REFLECT_DERIVED_NO_TYPENAME( graphene::net::address_message, BOOST_PP_SEQ_NIL, (addresses) )
100  (reason_for_closing)
101  (closing_due_to_error)
102  (error) )
103 
106  (request_sent_time)
107  (request_received_time)
108  (reply_transmitted_time))
109 FC_REFLECT_DERIVED_NO_TYPENAME(graphene::net::check_firewall_message, BOOST_PP_SEQ_NIL, (node_id)(endpoint_to_check))
111  (node_id)(endpoint_checked)(result))
113  BOOST_PP_SEQ_NIL, BOOST_PP_SEQ_NIL)
115  (connection_duration)
116  (remote_endpoint)
117  (node_id)
118  (clock_offset)
119  (round_trip_delay)
120  (connection_direction)
121  (firewalled)
122  (user_data))
124  (upload_rate_one_minute)
125  (download_rate_one_minute)
126  (upload_rate_fifteen_minutes)
127  (download_rate_fifteen_minutes)
128  (upload_rate_one_hour)
129  (download_rate_one_hour)
130  (current_connections))
131 
graphene::net::block_message
Definition: core_messages.hpp:104
graphene::net::get_current_connections_reply_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:392
graphene::net::item_ids_inventory_message_type
@ item_ids_inventory_message_type
Definition: core_messages.hpp:71
graphene::net::get_current_connections_request_message_type
@ get_current_connections_request_message_type
Definition: core_messages.hpp:86
graphene::net::address_info
Definition: core_messages.hpp:273
graphene::net::block_message_type
@ block_message_type
Definition: core_messages.hpp:69
graphene::net::core_protocol_version
const uint32_t core_protocol_version
Definition: core_messages.hpp:91
graphene::net::current_connection_data
Definition: core_messages.hpp:378
graphene::net::address_message
Definition: core_messages.hpp:298
graphene::net::trx_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:95
graphene::net::blockchain_item_ids_inventory_message_type
@ blockchain_item_ids_inventory_message_type
Definition: core_messages.hpp:72
graphene::net::blockchain_item_ids_inventory_message
Definition: core_messages.hpp:131
graphene::net::check_firewall_reply_message
Definition: core_messages.hpp:365
graphene::net::blockchain_item_ids_inventory_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:133
graphene::net::current_time_request_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:325
graphene::net::address_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:300
graphene::net::hello_message_type
@ hello_message_type
Definition: core_messages.hpp:76
graphene::net::block_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:106
graphene::net::get_current_connections_reply_message_type
@ get_current_connections_reply_message_type
Definition: core_messages.hpp:87
graphene::net::closing_connection_message_type
@ closing_connection_message_type
Definition: core_messages.hpp:81
graphene::net::closing_connection_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:307
graphene::net::fetch_blockchain_item_ids_message_type
@ fetch_blockchain_item_ids_message_type
Definition: core_messages.hpp:73
graphene::net::connection_accepted_message_type
@ connection_accepted_message_type
Definition: core_messages.hpp:77
GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION
#define GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION(type)
Definition: types.hpp:86
graphene::net::item_ids_inventory_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:119
core_messages.hpp
graphene::net::address_request_message
Definition: core_messages.hpp:263
graphene::net::connection_rejected_message
Definition: core_messages.hpp:241
graphene::net::current_time_request_message
Definition: core_messages.hpp:323
graphene::net::connection_accepted_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:227
graphene::net::check_firewall_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:353
graphene::net::current_time_request_message_type
@ current_time_request_message_type
Definition: core_messages.hpp:82
graphene::net::get_current_connections_request_message
Definition: core_messages.hpp:373
graphene::net::item_id
Definition: core_messages.hpp:49
graphene::net::hello_message
Definition: core_messages.hpp:189
graphene::net::address_request_message_type
@ address_request_message_type
Definition: core_messages.hpp:79
graphene::net::current_time_reply_message_type
@ current_time_reply_message_type
Definition: core_messages.hpp:83
graphene::net::fetch_items_message
Definition: core_messages.hpp:163
graphene::net::get_current_connections_request_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:375
graphene::net::connection_accepted_message
Definition: core_messages.hpp:225
graphene::net::current_time_reply_message
Definition: core_messages.hpp:334
graphene::net::get_current_connections_reply_message
Definition: core_messages.hpp:390
graphene::net::check_firewall_message
Definition: core_messages.hpp:351
graphene::net::current_time_reply_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:336
FC_REFLECT_DERIVED_NO_TYPENAME
#define FC_REFLECT_DERIVED_NO_TYPENAME(TYPE, INHERITS, MEMBERS)
Definition: reflect.hpp:357
graphene::net::address_request_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:265
graphene::net::connection_rejected_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:243
graphene::net::connection_rejected_message_type
@ connection_rejected_message_type
Definition: core_messages.hpp:78
graphene::net::item_not_available_message_type
@ item_not_available_message_type
Definition: core_messages.hpp:75
graphene::net::item_not_available_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:179
graphene::net::hello_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:191
graphene::net::closing_connection_message
Definition: core_messages.hpp:305
graphene::net::trx_message
Definition: core_messages.hpp:93
graphene::net::check_firewall_reply_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:367
graphene::net::fetch_items_message_type
@ fetch_items_message_type
Definition: core_messages.hpp:74
graphene::net::fetch_blockchain_item_ids_message
Definition: core_messages.hpp:149
graphene::net::check_firewall_message_type
@ check_firewall_message_type
Definition: core_messages.hpp:84
graphene::net::fetch_items_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:165
graphene::net::address_message_type
@ address_message_type
Definition: core_messages.hpp:80
graphene
Definition: api.cpp:48
graphene::net::fetch_blockchain_item_ids_message::type
static const core_message_type_enum type
Definition: core_messages.hpp:151
graphene::net::core_message_type_enum
core_message_type_enum
Definition: core_messages.hpp:66
graphene::net::item_not_available_message
Definition: core_messages.hpp:177
graphene::net::trx_message_type
@ trx_message_type
Definition: core_messages.hpp:68
graphene::net::item_ids_inventory_message
Definition: core_messages.hpp:117
graphene::net::check_firewall_reply_message_type
@ check_firewall_reply_message_type
Definition: core_messages.hpp:85
raw.hpp