BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | Public Attributes | List of all members
fc::detail::rate_limited_tcp_read_operation Class Reference
Inheritance diagram for fc::detail::rate_limited_tcp_read_operation:
fc::detail::rate_limited_operation

Public Member Functions

 rate_limited_tcp_read_operation (boost::asio::ip::tcp::socket &socket, char *buffer, size_t length, size_t offset, promise< size_t >::ptr completion_promise)
 
 rate_limited_tcp_read_operation (boost::asio::ip::tcp::socket &socket, const std::shared_ptr< char > &buffer, size_t length, size_t offset, promise< size_t >::ptr completion_promise)
 
virtual void perform_operation () override
 
- Public Member Functions inherited from fc::detail::rate_limited_operation
 rate_limited_operation (size_t length, size_t offset, promise< size_t >::ptr &&completion_promise)
 

Public Attributes

boost::asio::ip::tcp::socket & socket
 
char * raw_buffer
 
std::shared_ptr< char > shared_buffer
 
- Public Attributes inherited from fc::detail::rate_limited_operation
size_t length
 
size_t offset
 
size_t permitted_length
 
promise< size_t >::ptr completion_promise
 

Detailed Description

Definition at line 81 of file rate_limiting.cpp.

Constructor & Destructor Documentation

◆ rate_limited_tcp_read_operation() [1/2]

fc::detail::rate_limited_tcp_read_operation::rate_limited_tcp_read_operation ( boost::asio::ip::tcp::socket &  socket,
char *  buffer,
size_t  length,
size_t  offset,
promise< size_t >::ptr  completion_promise 
)
inline

Definition at line 88 of file rate_limiting.cpp.

◆ rate_limited_tcp_read_operation() [2/2]

fc::detail::rate_limited_tcp_read_operation::rate_limited_tcp_read_operation ( boost::asio::ip::tcp::socket &  socket,
const std::shared_ptr< char > &  buffer,
size_t  length,
size_t  offset,
promise< size_t >::ptr  completion_promise 
)
inline

Definition at line 97 of file rate_limiting.cpp.

Member Function Documentation

◆ perform_operation()

virtual void fc::detail::rate_limited_tcp_read_operation::perform_operation ( )
inlineoverridevirtual

Implements fc::detail::rate_limited_operation.

Definition at line 107 of file rate_limiting.cpp.

Member Data Documentation

◆ raw_buffer

char* fc::detail::rate_limited_tcp_read_operation::raw_buffer

Definition at line 85 of file rate_limiting.cpp.

◆ shared_buffer

std::shared_ptr<char> fc::detail::rate_limited_tcp_read_operation::shared_buffer

Definition at line 86 of file rate_limiting.cpp.

◆ socket

boost::asio::ip::tcp::socket& fc::detail::rate_limited_tcp_read_operation::socket

Definition at line 84 of file rate_limiting.cpp.


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