|
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. More... | |
| Socket | move_socket (std::size_t idx) |
| Extract the socket via move. More... | |
| auto | cuncurrent_accept_sockets_count () const noexcept |
| The number of sockets that can be used for cuncurrent accept operations. More... | |
Private Attributes | |
| asio_ns::io_context & | m_io_context |
| io_context for sockets to run on. More... | |
| std::vector< Socket > | m_sockets |
| A temporary socket for receiving new connections. More... | |
Definition at line 38 of file acceptor.hpp.
|
inlineprotected |
| settings | Server settings. |
| io_context | A context the server runs on. |
Definition at line 42 of file acceptor.hpp.
|
inlineprotectednoexcept |
The number of sockets that can be used for cuncurrent accept operations.
Definition at line 82 of file acceptor.hpp.
|
inlineprotected |
Extract the socket via move.
| idx | Index of a socket in the pool. |
Definition at line 72 of file acceptor.hpp.
|
inlineprotected |
Get the reference to socket.
| idx | Index of a socket in the pool. |
Definition at line 63 of file acceptor.hpp.
|
private |
io_context for sockets to run on.
Definition at line 89 of file acceptor.hpp.
|
private |
A temporary socket for receiving new connections.
Definition at line 93 of file acceptor.hpp.
1.8.14