BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
graphene::net Namespace Reference

Namespaces

 detail
 

Classes

struct  address_info
 
struct  address_message
 
struct  address_request_message
 
struct  block_message
 
struct  blockchain_item_ids_inventory_message
 
struct  check_firewall_message
 
struct  check_firewall_reply_message
 
struct  closing_connection_message
 
struct  connection_accepted_message
 
struct  connection_rejected_message
 
struct  current_connection_data
 
struct  current_time_reply_message
 
struct  current_time_request_message
 
struct  fetch_blockchain_item_ids_message
 
struct  fetch_items_message
 
struct  get_current_connections_reply_message
 
struct  get_current_connections_request_message
 
struct  hello_message
 
struct  item_id
 
struct  item_ids_inventory_message
 
struct  item_not_available_message
 
struct  message
 
struct  message_header
 
class  message_oriented_connection
 
class  message_oriented_connection_delegate
 
struct  message_propagation_data
 
class  node
 provides application independent P2P broadcast and data synchronization More...
 
class  node_delegate
 used by node reports status to client or fetch data from client More...
 
class  peer_connection
 
class  peer_connection_delegate
 
class  peer_database
 
struct  peer_status
 
struct  potential_peer_record
 
class  stcp_socket
 
struct  trx_message
 

Typedefs

typedef fc::ecc::public_key_data node_id_t
 
typedef fc::ripemd160 item_hash_t
 
using message_hash_type = fc::ripemd160
 
typedef std::shared_ptr< message_oriented_connectionmessage_oriented_connection_ptr
 
using node_impl_ptr = std::shared_ptr< detail::node_impl >
 
using node_ptr = std::shared_ptr< node >
 
using peer_connection_ptr = std::shared_ptr< peer_connection >
 
typedef std::shared_ptr< stcp_socketstcp_socket_ptr
 

Enumerations

enum  core_message_type_enum {
  trx_message_type = 1000, block_message_type = 1001, core_message_type_first = 5000, item_ids_inventory_message_type = 5001,
  blockchain_item_ids_inventory_message_type = 5002, fetch_blockchain_item_ids_message_type = 5003, fetch_items_message_type = 5004, item_not_available_message_type = 5005,
  hello_message_type = 5006, connection_accepted_message_type = 5007, connection_rejected_message_type = 5008, address_request_message_type = 5009,
  address_message_type = 5010, closing_connection_message_type = 5011, current_time_request_message_type = 5012, current_time_reply_message_type = 5013,
  check_firewall_message_type = 5014, check_firewall_reply_message_type = 5015, get_current_connections_request_message_type = 5016, get_current_connections_reply_message_type = 5017,
  core_message_type_last = 5099
}
 
enum  rejection_reason_code {
  rejection_reason_code::unspecified, rejection_reason_code::different_chain, rejection_reason_code::already_connected, rejection_reason_code::connected_to_self,
  rejection_reason_code::not_accepting_connections, rejection_reason_code::blocked, rejection_reason_code::invalid_hello_message, rejection_reason_code::client_too_old
}
 
enum  peer_connection_direction { peer_connection_direction::unknown, peer_connection_direction::inbound, peer_connection_direction::outbound }
 
enum  firewalled_state { firewalled_state::unknown, firewalled_state::firewalled, firewalled_state::not_firewalled }
 
enum  firewall_check_result { firewall_check_result::unable_to_check, firewall_check_result::unable_to_connect, firewall_check_result::connection_successful }
 
enum  potential_peer_last_connection_disposition {
  never_attempted_to_connect, last_connection_failed, last_connection_rejected, last_connection_handshaking_failed,
  last_connection_succeeded
}
 

Functions

 FC_IMPLEMENT_DERIVED_EXCEPTION (send_queue_overflow, net_exception, 90001, "send queue for this peer exceeded maximum size") FC_IMPLEMENT_DERIVED_EXCEPTION(insufficient_relay_fee
 
insufficient relay fee FC_IMPLEMENT_DERIVED_EXCEPTION (already_connected_to_requested_peer, net_exception, 90003, "already connected to requested peer") FC_IMPLEMENT_DERIVED_EXCEPTION(block_older_than_undo_history
 
insufficient relay fee block is older than our undo history allows us to process FC_IMPLEMENT_DERIVED_EXCEPTION (peer_is_on_an_unreachable_fork, net_exception, 90005, "peer is on another fork") FC_IMPLEMENT_DERIVED_EXCEPTION(block_timestamp_in_future_exception
 

Variables

 net_exception
 
const uint32_t core_protocol_version = GRAPHENE_NET_PROTOCOL_VERSION
 

Typedef Documentation

◆ item_hash_t

Definition at line 48 of file core_messages.hpp.

◆ message_hash_type

Definition at line 52 of file message.hpp.

◆ message_oriented_connection_ptr

Definition at line 67 of file message_oriented_connection.hpp.

◆ node_id_t

Definition at line 47 of file core_messages.hpp.

◆ node_impl_ptr

using graphene::net::node_impl_ptr = typedef std::shared_ptr<detail::node_impl>

Definition at line 41 of file node.hpp.

◆ node_ptr

using graphene::net::node_ptr = typedef std::shared_ptr<node>

Definition at line 326 of file node.hpp.

◆ peer_connection_ptr

Definition at line 57 of file peer_connection.hpp.

◆ stcp_socket_ptr

typedef std::shared_ptr<stcp_socket> graphene::net::stcp_socket_ptr

Definition at line 75 of file stcp_socket.hpp.

Enumeration Type Documentation

◆ core_message_type_enum

Enumerator
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 

Definition at line 66 of file core_messages.hpp.

◆ firewall_check_result

Enumerator
unable_to_check 
unable_to_connect 
connection_successful 

Definition at line 358 of file core_messages.hpp.

◆ firewalled_state

Enumerator
unknown 
firewalled 
not_firewalled 

Definition at line 271 of file core_messages.hpp.

◆ peer_connection_direction

Enumerator
unknown 
inbound 
outbound 

Definition at line 270 of file core_messages.hpp.

◆ potential_peer_last_connection_disposition

Enumerator
never_attempted_to_connect 
last_connection_failed 
last_connection_rejected 
last_connection_handshaking_failed 
last_connection_succeeded 

Definition at line 38 of file peer_database.hpp.

◆ rejection_reason_code

Enumerator
unspecified 
different_chain 
already_connected 
connected_to_self 
not_accepting_connections 
blocked 
invalid_hello_message 
client_too_old 

Definition at line 232 of file core_messages.hpp.

Function Documentation

◆ FC_IMPLEMENT_DERIVED_EXCEPTION() [1/3]

insufficient relay fee graphene::net::FC_IMPLEMENT_DERIVED_EXCEPTION ( already_connected_to_requested_peer  ,
net_exception  ,
90003  ,
"already connected to requested peer"   
)

◆ FC_IMPLEMENT_DERIVED_EXCEPTION() [2/3]

insufficient relay fee block is older than our undo history allows us to process graphene::net::FC_IMPLEMENT_DERIVED_EXCEPTION ( peer_is_on_an_unreachable_fork  ,
net_exception  ,
90005  ,
"peer is on another fork"   
)

◆ FC_IMPLEMENT_DERIVED_EXCEPTION() [3/3]

graphene::net::FC_IMPLEMENT_DERIVED_EXCEPTION ( send_queue_overflow  ,
net_exception  ,
90001  ,
"send queue for this peer exceeded maximum size"   
)

Variable Documentation

◆ core_protocol_version

const uint32_t graphene::net::core_protocol_version = GRAPHENE_NET_PROTOCOL_VERSION

Definition at line 91 of file core_messages.hpp.

◆ net_exception

insufficient relay fee block is older than our undo history allows us to process graphene::net::net_exception

Definition at line 31 of file exceptions.cpp.