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()
| AsyncChannel::~AsyncChannel |
( |
| ) |
|
|
virtual |
◆ commit()
| void AsyncChannel::commit |
( |
std::shared_ptr< std::string > & |
str_p | ) |
|
Add a message to the sending queue.
◆ do_read()
| void AsyncChannel::do_read |
( |
| ) |
|
This method implements the reading loop.
◆ do_write() [1/2]
◆ do_write() [2/2]
| void AsyncChannel::do_write |
( |
std::shared_ptr< std::string > & |
str_p | ) |
|
Write asynchronously the message sharing the payload.
◆ do_write_buffer()
| void AsyncChannel::do_write_buffer |
( |
| ) |
|
Write asynchronously the message sharing the payload.
◆ get_socket()
| tcp::socket & AsyncChannel::get_socket |
( |
| ) |
|
The documentation for this class was generated from the following files: