BitShares-Core  6.1.0
BitShares blockchain implementation and command-line interface 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 
static const core_message_type_enum type
const uint32_t core_protocol_version
static const core_message_type_enum type
Definition: api.cpp:48
static const core_message_type_enum type
#define FC_REFLECT_DERIVED_NO_TYPENAME(TYPE, INHERITS, MEMBERS)
Definition: reflect.hpp:357
static const core_message_type_enum type
static const core_message_type_enum type
static const core_message_type_enum type
static const core_message_type_enum type
#define GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION(type)
Definition: types.hpp:86
static const core_message_type_enum type
static const core_message_type_enum type
static const core_message_type_enum type
static const core_message_type_enum type
static const core_message_type_enum type
static const core_message_type_enum type
static const core_message_type_enum type
static const core_message_type_enum type
static const core_message_type_enum type