BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
#include <message_oriented_connection.hpp>
Public Member Functions | |
message_oriented_connection (message_oriented_connection_delegate *delegate=nullptr) | |
~message_oriented_connection () | |
fc::tcp_socket & | get_socket () |
void | accept () |
void | bind (const fc::ip::endpoint &local_endpoint) |
void | connect_to (const fc::ip::endpoint &remote_endpoint) |
void | send_message (const message &message_to_send) |
void | close_connection () |
void | destroy_connection () |
uint64_t | get_total_bytes_sent () const |
uint64_t | get_total_bytes_received () const |
fc::time_point | get_last_message_sent_time () const |
fc::time_point | get_last_message_received_time () const |
fc::time_point | get_connection_time () const |
fc::sha512 | get_shared_secret () const |
uses a secure socket to create a connection that reads and writes a stream of fc::net::message
objects
Definition at line 43 of file message_oriented_connection.hpp.
graphene::net::message_oriented_connection::message_oriented_connection | ( | message_oriented_connection_delegate * | delegate = nullptr | ) |
Definition at line 381 of file message_oriented_connection.cpp.
graphene::net::message_oriented_connection::~message_oriented_connection | ( | ) |
Definition at line 386 of file message_oriented_connection.cpp.
void graphene::net::message_oriented_connection::accept | ( | ) |
Definition at line 395 of file message_oriented_connection.cpp.
void graphene::net::message_oriented_connection::bind | ( | const fc::ip::endpoint & | local_endpoint | ) |
Definition at line 405 of file message_oriented_connection.cpp.
void graphene::net::message_oriented_connection::close_connection | ( | ) |
Definition at line 415 of file message_oriented_connection.cpp.
void graphene::net::message_oriented_connection::connect_to | ( | const fc::ip::endpoint & | remote_endpoint | ) |
Definition at line 400 of file message_oriented_connection.cpp.
void graphene::net::message_oriented_connection::destroy_connection | ( | ) |
Definition at line 420 of file message_oriented_connection.cpp.
fc::time_point graphene::net::message_oriented_connection::get_connection_time | ( | ) | const |
Definition at line 444 of file message_oriented_connection.cpp.
fc::time_point graphene::net::message_oriented_connection::get_last_message_received_time | ( | ) | const |
Definition at line 440 of file message_oriented_connection.cpp.
fc::time_point graphene::net::message_oriented_connection::get_last_message_sent_time | ( | ) | const |
Definition at line 435 of file message_oriented_connection.cpp.
fc::sha512 graphene::net::message_oriented_connection::get_shared_secret | ( | ) | const |
Definition at line 448 of file message_oriented_connection.cpp.
fc::tcp_socket & graphene::net::message_oriented_connection::get_socket | ( | ) |
Definition at line 390 of file message_oriented_connection.cpp.
uint64_t graphene::net::message_oriented_connection::get_total_bytes_received | ( | ) | const |
Definition at line 430 of file message_oriented_connection.cpp.
uint64_t graphene::net::message_oriented_connection::get_total_bytes_sent | ( | ) | const |
Definition at line 425 of file message_oriented_connection.cpp.
void graphene::net::message_oriented_connection::send_message | ( | const message & | message_to_send | ) |
Definition at line 410 of file message_oriented_connection.cpp.