BitShares-Core  6.1.0
BitShares blockchain implementation and command-line interface 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 358 of file message_oriented_connection.cpp.

◆ ~message_oriented_connection()

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

Definition at line 363 of file message_oriented_connection.cpp.

Member Function Documentation

◆ accept()

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

Definition at line 372 of file message_oriented_connection.cpp.

◆ bind()

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

Definition at line 382 of file message_oriented_connection.cpp.

◆ close_connection()

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

Definition at line 392 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 377 of file message_oriented_connection.cpp.

◆ destroy_connection()

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

Definition at line 397 of file message_oriented_connection.cpp.

◆ get_connection_time()

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

Definition at line 421 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 417 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 412 of file message_oriented_connection.cpp.

◆ get_shared_secret()

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

Definition at line 425 of file message_oriented_connection.cpp.

◆ get_socket()

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

Definition at line 367 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 407 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 402 of file message_oriented_connection.cpp.

◆ send_message()

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

Definition at line 387 of file message_oriented_connection.cpp.


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