2
3
6
7
8
9
10
14#include <restinio/common_types.hpp>
26
27
28
29
39
40
41
42
47
48
49
50
58
59
60
61
62
83
84
85
86
87
88
89
90
91
92
An information about new incoming connection to be passed to IP-blocker object.
endpoint_t remote_endpoint() const noexcept
Remote endpoint of the new connection.
incoming_info_t(endpoint_t remote_endpoint)
Initializing constructor.
endpoint_t m_remote_endpoint
constexpr inspection_result_t deny() noexcept
Shorthand for inspection_result_t::deny.
inspection_result_t
Enumeration of result of inspecting new incoming connection.
@ deny
New connection is disabled and should be closed.
@ allow
New connection is allowed to be processed further.
constexpr inspection_result_t allow() noexcept
Shorthand for inspection_result_t::allow.
asio_ns::ip::tcp::endpoint endpoint_t
An alias for endpoint type from Asio.
The default no-op IP-blocker.