packio
Public Types | Public Member Functions | Static Public Attributes | List of all members
packio::server_session< Rpc, Socket, Dispatcher > Class Template Reference

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_typesocket ()
 Get the underlying socket.
 
const socket_typesocket () 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.
 

Detailed Description

template<typename Rpc, typename Socket, typename Dispatcher>
class packio::server_session< Rpc, Socket, Dispatcher >

The server_session class, created by the server.


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