#include <httpserv.hpp>
|
template<typename L > |
| Listener (openvpn_io::io_context &io_context_arg, const Config::Ptr &config_arg, const L &listen_item_or_list, const Client::Factory::Ptr &client_factory_arg) |
|
void | start () override |
|
void | stop () override |
|
template<typename CLIENT_INSTANCE , typename FUNC > |
void | walk (FUNC func) const |
|
Definition at line 175 of file httpserv.hpp.
◆ Base
◆ ClientMap
◆ Ptr
◆ Listener()
template<typename L >
openvpn::WS::Server::Listener::Listener |
( |
openvpn_io::io_context & |
io_context_arg, |
|
|
const Config::Ptr & |
config_arg, |
|
|
const L & |
listen_item_or_list, |
|
|
const Client::Factory::Ptr & |
client_factory_arg |
|
) |
| |
|
inline |
◆ allow_client()
◆ handle_accept()
void openvpn::WS::Server::Listener::handle_accept |
( |
AsioPolySock::Base::Ptr |
sock, |
|
|
const openvpn_io::error_code & |
error |
|
) |
| |
|
inlineoverrideprivatevirtual |
◆ new_client_id()
client_t openvpn::WS::Server::Listener::new_client_id |
( |
| ) |
|
|
inlineprivate |
◆ queue_accept()
void openvpn::WS::Server::Listener::queue_accept |
( |
const size_t |
acceptor_index | ) |
|
|
inlineprivate |
◆ queue_accept_throttled()
void openvpn::WS::Server::Listener::queue_accept_throttled |
( |
const size_t |
acceptor_index, |
|
|
const bool |
debit_one |
|
) |
| |
|
inlineprivate |
◆ remove_client()
void openvpn::WS::Server::Listener::remove_client |
( |
Client::Ptr |
cli | ) |
|
|
inlineprivate |
◆ remove_client_id()
void openvpn::WS::Server::Listener::remove_client_id |
( |
const client_t |
client_id | ) |
|
|
inlineprivate |
◆ start()
void openvpn::WS::Server::Listener::start |
( |
| ) |
|
|
inlineoverridevirtual |
◆ stop()
void openvpn::WS::Server::Listener::stop |
( |
| ) |
|
|
inlineoverridevirtual |
◆ throttle_reset()
void openvpn::WS::Server::Listener::throttle_reset |
( |
const Time & |
now, |
|
|
const bool |
debit_one |
|
) |
| |
|
inlineprivate |
◆ throttle_timer_callback()
void openvpn::WS::Server::Listener::throttle_timer_callback |
( |
| ) |
|
|
inlineprivate |
◆ throttle_timer_wait()
void openvpn::WS::Server::Listener::throttle_timer_wait |
( |
| ) |
|
|
inlineprivate |
◆ walk()
template<typename CLIENT_INSTANCE , typename FUNC >
void openvpn::WS::Server::Listener::walk |
( |
FUNC |
func | ) |
const |
|
inline |
◆ acceptors
◆ client_factory
◆ clients
ClientMap openvpn::WS::Server::Listener::clients |
|
private |
◆ config
◆ halt
bool openvpn::WS::Server::Listener::halt = false |
|
private |
◆ io_context
openvpn_io::io_context& openvpn::WS::Server::Listener::io_context |
|
private |
◆ listen_list
◆ next_id
client_t openvpn::WS::Server::Listener::next_id = 0 |
|
private |
◆ throttle_acceptor_indices
std::deque<size_t> openvpn::WS::Server::Listener::throttle_acceptor_indices |
|
private |
◆ throttle_connections
int openvpn::WS::Server::Listener::throttle_connections = 0 |
|
private |
◆ throttle_expire
Time openvpn::WS::Server::Listener::throttle_expire |
|
private |
◆ throttle_timer
The documentation for this class was generated from the following file: