BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface 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  firewall_check_state_data
 
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  simulated_network
 
class  stcp_socket
 
struct  trx_message
 

Typedefs

typedef fc::ecc::public_key_data node_id_t
 
typedef fc::ripemd160 item_hash_t
 
typedef fc::uint160_t message_hash_type
 
typedef std::shared_ptr< message_oriented_connectionmessage_oriented_connection_ptr
 
typedef std::shared_ptr< nodenode_ptr
 
typedef std::shared_ptr< simulated_networksimulated_network_ptr
 
typedef std::shared_ptr< peer_connectionpeer_connection_ptr
 
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

Definition at line 48 of file core_messages.hpp.

Definition at line 54 of file message.hpp.

Definition at line 67 of file message_oriented_connection.hpp.

Definition at line 47 of file core_messages.hpp.

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

Definition at line 345 of file node.hpp.

Definition at line 72 of file peer_connection.hpp.

Definition at line 346 of file node.hpp.

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

Definition at line 75 of file stcp_socket.hpp.

Enumeration Type Documentation

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.

Enumerator
unable_to_check 
unable_to_connect 
connection_successful 

Definition at line 358 of file core_messages.hpp.

Enumerator
unknown 
firewalled 
not_firewalled 

Definition at line 271 of file core_messages.hpp.

Enumerator
unknown 
inbound 
outbound 

Definition at line 270 of file core_messages.hpp.

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.

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

graphene::net::FC_IMPLEMENT_DERIVED_EXCEPTION ( send_queue_overflow  ,
net_exception  ,
90001  ,
"send queue for this peer exceeded maximum size"   
)
insufficient relay fee graphene::net::FC_IMPLEMENT_DERIVED_EXCEPTION ( already_connected_to_requested_peer  ,
net_exception  ,
90003  ,
"already connected to requested peer"   
)
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"   
)

Variable Documentation

const uint32_t graphene::net::core_protocol_version = GRAPHENE_NET_PROTOCOL_VERSION

Definition at line 91 of file core_messages.hpp.

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.