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

Public Member Functions

 impl ()
 
 ~impl ()
 
virtual size_t readsome (boost::asio::ip::tcp::socket &socket, char *buffer, size_t length) override
 
virtual size_t readsome (boost::asio::ip::tcp::socket &socket, const std::shared_ptr< char > &buffer, size_t length, size_t offset) override
 
virtual size_t writesome (boost::asio::ip::tcp::socket &socket, const char *buffer, size_t length) override
 
virtual size_t writesome (boost::asio::ip::tcp::socket &socket, const std::shared_ptr< const char > &buffer, size_t length, size_t offset) override
 
- Public Member Functions inherited from fc::tcp_socket_io_hooks
virtual ~tcp_socket_io_hooks ()
 

Public Attributes

fc::future< size_t > _write_in_progress
 
fc::future< size_t > _read_in_progress
 
boost::asio::ip::tcp::socket _sock
 
tcp_socket_io_hooks_io_hooks
 

Detailed Description

Definition at line 28 of file tcp_socket.cpp.

Constructor & Destructor Documentation

◆ impl()

fc::tcp_socket::impl::impl ( )
inline

Definition at line 30 of file tcp_socket.cpp.

◆ ~impl()

fc::tcp_socket::impl::~impl ( )
inline

Definition at line 34 of file tcp_socket.cpp.

Member Function Documentation

◆ readsome() [1/2]

size_t fc::tcp_socket::impl::readsome ( boost::asio::ip::tcp::socket &  socket,
char *  buffer,
size_t  length 
)
overridevirtual

Implements fc::tcp_socket_io_hooks.

Definition at line 71 of file tcp_socket.cpp.

◆ readsome() [2/2]

size_t fc::tcp_socket::impl::readsome ( boost::asio::ip::tcp::socket &  socket,
const std::shared_ptr< char > &  buffer,
size_t  length,
size_t  offset 
)
overridevirtual

Implements fc::tcp_socket_io_hooks.

Definition at line 75 of file tcp_socket.cpp.

◆ writesome() [1/2]

size_t fc::tcp_socket::impl::writesome ( boost::asio::ip::tcp::socket &  socket,
const char *  buffer,
size_t  length 
)
overridevirtual

Implements fc::tcp_socket_io_hooks.

Definition at line 79 of file tcp_socket.cpp.

◆ writesome() [2/2]

size_t fc::tcp_socket::impl::writesome ( boost::asio::ip::tcp::socket &  socket,
const std::shared_ptr< const char > &  buffer,
size_t  length,
size_t  offset 
)
overridevirtual

Implements fc::tcp_socket_io_hooks.

Definition at line 83 of file tcp_socket.cpp.

Member Data Documentation

◆ _io_hooks

tcp_socket_io_hooks* fc::tcp_socket::impl::_io_hooks

Definition at line 68 of file tcp_socket.cpp.

◆ _read_in_progress

fc::future<size_t> fc::tcp_socket::impl::_read_in_progress

Definition at line 66 of file tcp_socket.cpp.

◆ _sock

boost::asio::ip::tcp::socket fc::tcp_socket::impl::_sock

Definition at line 67 of file tcp_socket.cpp.

◆ _write_in_progress

fc::future<size_t> fc::tcp_socket::impl::_write_in_progress

Definition at line 65 of file tcp_socket.cpp.


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