|
RESTinio
|
#include <acceptor.hpp>
Protected Member Functions | |
| template<typename Settings > | |
| socket_supplier_t (Settings &settings, asio_ns::io_context &io_context) | |
| Socket & | socket (std::size_t idx) |
| Get the reference to socket. | |
| Socket | move_socket (std::size_t idx) |
| Extract the socket via move. | |
| auto | concurrent_accept_sockets_count () const noexcept |
| The number of sockets that can be used for cuncurrent accept operations. | |
Private Attributes | |
| asio_ns::io_context & | m_io_context |
| io_context for sockets to run on. | |
| std::vector< Socket > | m_sockets |
| A temporary socket for receiving new connections. | |
Definition at line 41 of file acceptor.hpp.
|
inlineprotected |
| settings | Server settings. |
| io_context | A context the server runs on. |
Definition at line 45 of file acceptor.hpp.
|
inlineprotectednoexcept |
The number of sockets that can be used for cuncurrent accept operations.
Definition at line 85 of file acceptor.hpp.
|
inlineprotected |
Extract the socket via move.
| idx | Index of a socket in the pool. |
Definition at line 75 of file acceptor.hpp.
|
inlineprotected |
Get the reference to socket.
| idx | Index of a socket in the pool. |
Definition at line 66 of file acceptor.hpp.
|
private |
io_context for sockets to run on.
Definition at line 92 of file acceptor.hpp.
|
private |
A temporary socket for receiving new connections.
Definition at line 96 of file acceptor.hpp.