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.