BitShares-Core  5.0.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

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

Definition at line 357 of file message_oriented_connection.cpp.

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

Definition at line 362 of file message_oriented_connection.cpp.

Member Function Documentation

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

Definition at line 371 of file message_oriented_connection.cpp.

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

Definition at line 381 of file message_oriented_connection.cpp.

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

Definition at line 391 of file message_oriented_connection.cpp.

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

Definition at line 376 of file message_oriented_connection.cpp.

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

Definition at line 396 of file message_oriented_connection.cpp.

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

Definition at line 420 of file message_oriented_connection.cpp.

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

Definition at line 416 of file message_oriented_connection.cpp.

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

Definition at line 411 of file message_oriented_connection.cpp.

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

Definition at line 424 of file message_oriented_connection.cpp.

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

Definition at line 366 of file message_oriented_connection.cpp.

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

Definition at line 406 of file message_oriented_connection.cpp.

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

Definition at line 401 of file message_oriented_connection.cpp.

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

Definition at line 386 of file message_oriented_connection.cpp.


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