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_write_operation Class Reference
Inheritance diagram for fc::detail::rate_limited_tcp_write_operation:
fc::detail::rate_limited_operation

Public Member Functions

 rate_limited_tcp_write_operation (boost::asio::ip::tcp::socket &socket, const char *buffer, size_t length, size_t offset, promise< size_t >::ptr completion_promise)
 
 rate_limited_tcp_write_operation (boost::asio::ip::tcp::socket &socket, const std::shared_ptr< const 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
 
const char * raw_buffer
 
std::shared_ptr< const 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 40 of file rate_limiting.cpp.

Constructor & Destructor Documentation

◆ rate_limited_tcp_write_operation() [1/2]

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

Definition at line 47 of file rate_limiting.cpp.

◆ rate_limited_tcp_write_operation() [2/2]

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

Definition at line 58 of file rate_limiting.cpp.

Member Function Documentation

◆ perform_operation()

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

Implements fc::detail::rate_limited_operation.

Definition at line 68 of file rate_limiting.cpp.

Member Data Documentation

◆ raw_buffer

const char* fc::detail::rate_limited_tcp_write_operation::raw_buffer

Definition at line 44 of file rate_limiting.cpp.

◆ shared_buffer

std::shared_ptr<const char> fc::detail::rate_limited_tcp_write_operation::shared_buffer

Definition at line 45 of file rate_limiting.cpp.

◆ socket

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

Definition at line 43 of file rate_limiting.cpp.


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