BitLab 0.1.0
BitLab: A Browser for the Bitcoin P2P Network and Blockchain
|
The structure to store information about a connected peer. More...
#include <peer_connection.h>
Data Fields | |
char | ip_address [64] |
uint16_t | port |
int | socket_fd |
pthread_t | thread |
int | is_connected |
int | operation_in_progress |
uint64_t | compact_blocks |
uint64_t | fee_rate |
The structure to store information about a connected peer.
ip_address | The IP address of the peer. |
port | The port of the peer. |
socket_fd | The socket file descriptor for communication. |
thread | The thread assigned to this connection. |
is_connected | The connection status. |
operation_in_progress | The operation status. |
compact_blocks | Does peer want to use compact blocks. |
fee_rate | Min fee rate in sat/kB of transaction that peer allows. |
Definition at line 49 of file peer_connection.h.
uint64_t Node::compact_blocks |
Definition at line 57 of file peer_connection.h.
Referenced by peer_communication().
uint64_t Node::fee_rate |
Definition at line 58 of file peer_connection.h.
Referenced by peer_communication().
char Node::ip_address[64] |
Definition at line 51 of file peer_connection.h.
Referenced by disconnect(), initialize_node(), peer_communication(), send_getaddr_and_wait(), send_getblocks_and_wait(), send_getdata_and_wait(), send_getheaders_and_wait(), send_headers(), send_inv_and_wait(), and send_tx().
int Node::is_connected |
Definition at line 55 of file peer_connection.h.
Referenced by disconnect(), initialize_node(), peer_communication(), and send_getaddr_and_wait().
int Node::operation_in_progress |
Definition at line 56 of file peer_connection.h.
Referenced by peer_communication(), send_getaddr_and_wait(), send_getblocks_and_wait(), send_getdata_and_wait(), send_getheaders_and_wait(), and send_inv_and_wait().
uint16_t Node::port |
Definition at line 52 of file peer_connection.h.
Referenced by disconnect(), and initialize_node().
int Node::socket_fd |
Definition at line 53 of file peer_connection.h.
Referenced by disconnect(), initialize_node(), peer_communication(), send_getaddr_and_wait(), send_getblocks_and_wait(), send_getdata_and_wait(), send_getheaders_and_wait(), send_headers(), send_inv_and_wait(), and send_tx().
pthread_t Node::thread |
Definition at line 54 of file peer_connection.h.
Referenced by create_peer_thread(), and disconnect().