Represent an opened channel between two endpoints.
More...
#include <asyncchannel.hh>
Represent an opened channel between two endpoints.
- Attention
- It's intended to be used as a base class.
-
Calling the constructor is not enought, you should also call init function.
AsyncChannel::~AsyncChannel |
( |
| ) |
|
|
virtual |
void AsyncChannel::commit |
( |
std::shared_ptr< std::string > & |
str_p | ) |
|
Add a message to the sending queue.
void AsyncChannel::do_read |
( |
| ) |
|
This method implements the reading loop.
void AsyncChannel::do_write |
( |
std::shared_ptr< std::string > & |
str_p | ) |
|
Write asynchronously the message sharing the payload.
void AsyncChannel::do_write_buffer |
( |
| ) |
|
Write asynchronously the message sharing the payload.
tcp::socket & AsyncChannel::get_socket |
( |
| ) |
|
The documentation for this class was generated from the following files: