BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | List of all members
graphene::net::message_oriented_connection Class Reference

#include <message_oriented_connection.hpp>

Public Member Functions

 message_oriented_connection (message_oriented_connection_delegate *delegate=nullptr)
 
 ~message_oriented_connection ()
 
fc::tcp_socketget_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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ message_oriented_connection()

graphene::net::message_oriented_connection::message_oriented_connection ( message_oriented_connection_delegate delegate = nullptr)

Definition at line 381 of file message_oriented_connection.cpp.

◆ ~message_oriented_connection()

graphene::net::message_oriented_connection::~message_oriented_connection ( )

Definition at line 386 of file message_oriented_connection.cpp.

Member Function Documentation

◆ accept()

void graphene::net::message_oriented_connection::accept ( )

Definition at line 395 of file message_oriented_connection.cpp.

◆ bind()

void graphene::net::message_oriented_connection::bind ( const fc::ip::endpoint local_endpoint)

Definition at line 405 of file message_oriented_connection.cpp.

◆ close_connection()

void graphene::net::message_oriented_connection::close_connection ( )

Definition at line 415 of file message_oriented_connection.cpp.

◆ connect_to()

void graphene::net::message_oriented_connection::connect_to ( const fc::ip::endpoint remote_endpoint)

Definition at line 400 of file message_oriented_connection.cpp.

◆ destroy_connection()

void graphene::net::message_oriented_connection::destroy_connection ( )

Definition at line 420 of file message_oriented_connection.cpp.

◆ get_connection_time()

fc::time_point graphene::net::message_oriented_connection::get_connection_time ( ) const

Definition at line 444 of file message_oriented_connection.cpp.

◆ get_last_message_received_time()

fc::time_point graphene::net::message_oriented_connection::get_last_message_received_time ( ) const

Definition at line 440 of file message_oriented_connection.cpp.

◆ get_last_message_sent_time()

fc::time_point graphene::net::message_oriented_connection::get_last_message_sent_time ( ) const

Definition at line 435 of file message_oriented_connection.cpp.

◆ get_shared_secret()

fc::sha512 graphene::net::message_oriented_connection::get_shared_secret ( ) const

Definition at line 448 of file message_oriented_connection.cpp.

◆ get_socket()

fc::tcp_socket & graphene::net::message_oriented_connection::get_socket ( )

Definition at line 390 of file message_oriented_connection.cpp.

◆ get_total_bytes_received()

uint64_t graphene::net::message_oriented_connection::get_total_bytes_received ( ) const

Definition at line 430 of file message_oriented_connection.cpp.

◆ get_total_bytes_sent()

uint64_t graphene::net::message_oriented_connection::get_total_bytes_sent ( ) const

Definition at line 425 of file message_oriented_connection.cpp.

◆ send_message()

void graphene::net::message_oriented_connection::send_message ( const message message_to_send)

Definition at line 410 of file message_oriented_connection.cpp.


The documentation for this class was generated from the following files: