|
packio
|
The server_session class, created by the server. More...
#include <packio/server_session.h>
Public Types | |
| using | socket_type = Socket |
| The socket type. | |
| using | protocol_type = typename socket_type::protocol_type |
| The protocol type. | |
| using | executor_type = typename socket_type::executor_type |
| The executor type. | |
Public Member Functions | |
| socket_type & | socket () |
| Get the underlying socket. | |
| const socket_type & | socket () const |
| Get the underlying socket, const. | |
| executor_type | get_executor () |
| Get the executor associated with the object. | |
| void | set_buffer_reserve_size (std::size_t size) noexcept |
| Set the size reserved by the reception buffer. | |
| std::size_t | get_buffer_reserve_size () const noexcept |
| Get the size reserved by the reception buffer. | |
| void | start () |
| Start the session. | |
Static Public Attributes | |
| static constexpr size_t | kDefaultBufferReserveSize = 4096 |
| The default size reserved by the reception buffer. | |
The server_session class, created by the server.