#include <cliconnect.hpp>
|
| static constexpr bool | is_thread_safe () |
| | Delegates call to RCImpl and returns the result.
|
| |
Definition at line 61 of file cliconnect.hpp.
◆ Client
◆ Ptr
◆ ClientConnect()
| openvpn::ClientConnect::ClientConnect |
( |
openvpn_io::io_context & |
io_context_arg, |
|
|
const ClientOptions::Ptr & |
client_options_arg |
|
) |
| |
|
inline |
◆ ~ClientConnect()
| openvpn::ClientConnect::~ClientConnect |
( |
| ) |
|
|
inline |
◆ add_error_and_restart() [1/2]
template<typename ErrorClass >
| void openvpn::ClientConnect::add_error_and_restart |
( |
std::chrono::milliseconds |
delay | ) |
|
|
inlineprivate |
◆ add_error_and_restart() [2/2]
template<typename ErrorClass >
| void openvpn::ClientConnect::add_error_and_restart |
( |
std::chrono::milliseconds |
delay, |
|
|
const std::string & |
fatal_reason |
|
) |
| |
|
inlineprivate |
◆ add_error_and_stop() [1/3]
template<typename ErrorClass >
| void openvpn::ClientConnect::add_error_and_stop |
( |
const Client * |
client | ) |
|
|
inlineprivate |
◆ add_error_and_stop() [2/3]
template<typename ErrorClass >
| void openvpn::ClientConnect::add_error_and_stop |
( |
const Error::Type |
error_code | ) |
|
|
inlineprivate |
◆ add_error_and_stop() [3/3]
template<typename ErrorClass >
| void openvpn::ClientConnect::add_error_and_stop |
( |
const Error::Type |
error_code, |
|
|
const std::string & |
fatal_reason |
|
) |
| |
|
inlineprivate |
◆ bulk_resolve_done()
| virtual void openvpn::ClientConnect::bulk_resolve_done |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ cancel_timers()
| void openvpn::ClientConnect::cancel_timers |
( |
| ) |
|
|
inlineprivate |
◆ client_proto_auth_pending_timeout()
| virtual void openvpn::ClientConnect::client_proto_auth_pending_timeout |
( |
int |
timeout | ) |
|
|
inlineoverrideprivatevirtual |
◆ client_proto_connected()
| virtual void openvpn::ClientConnect::client_proto_connected |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ client_proto_renegotiated()
| void openvpn::ClientConnect::client_proto_renegotiated |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ client_proto_terminate()
| virtual void openvpn::ClientConnect::client_proto_terminate |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ cln_pause()
| virtual void openvpn::ClientConnect::cln_pause |
( |
const std::string & |
reason | ) |
|
|
inlineoverrideprivatevirtual |
◆ cln_reconnect()
| virtual void openvpn::ClientConnect::cln_reconnect |
( |
int |
seconds | ) |
|
|
inlineoverrideprivatevirtual |
◆ cln_resume()
| virtual void openvpn::ClientConnect::cln_resume |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ cln_stop()
| virtual void openvpn::ClientConnect::cln_stop |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ conn_timer_callback()
| void openvpn::ClientConnect::conn_timer_callback |
( |
unsigned int |
gen, |
|
|
const openvpn_io::error_code & |
e |
|
) |
| |
|
inlineprivate |
◆ conn_timer_start()
| void openvpn::ClientConnect::conn_timer_start |
( |
int |
timeout | ) |
|
|
inlineprivate |
◆ dont_restart()
| void openvpn::ClientConnect::dont_restart |
( |
| ) |
|
|
inline |
◆ graceful_stop()
| void openvpn::ClientConnect::graceful_stop |
( |
| ) |
|
|
inline |
◆ handle_auth_failed()
| void openvpn::ClientConnect::handle_auth_failed |
( |
const Error::Type |
error_code, |
|
|
const std::string & |
reason |
|
) |
| |
|
inlineprivate |
◆ interim_finalize()
| void openvpn::ClientConnect::interim_finalize |
( |
| ) |
|
|
inlineprivate |
◆ new_client()
| void openvpn::ClientConnect::new_client |
( |
| ) |
|
|
inlineprivate |
◆ OPENVPN_SIMPLE_EXCEPTION()
| openvpn::ClientConnect::OPENVPN_SIMPLE_EXCEPTION |
( |
client_connect_unhandled_exception |
| ) |
|
◆ pause()
| void openvpn::ClientConnect::pause |
( |
const std::string & |
reason | ) |
|
|
inline |
◆ post_cc_msg()
| void openvpn::ClientConnect::post_cc_msg |
( |
const std::string & |
msg | ) |
|
|
inline |
◆ queue_restart()
| void openvpn::ClientConnect::queue_restart |
( |
std::chrono::milliseconds |
delay = default_delay_ | ) |
|
|
inlineprivate |
◆ reconnect()
| void openvpn::ClientConnect::reconnect |
( |
int |
seconds | ) |
|
|
inline |
◆ restart_wait_callback()
| void openvpn::ClientConnect::restart_wait_callback |
( |
unsigned int |
gen, |
|
|
const openvpn_io::error_code & |
e |
|
) |
| |
|
inlineprivate |
◆ resume()
| void openvpn::ClientConnect::resume |
( |
| ) |
|
|
inline |
◆ send_app_control_channel_msg()
| void openvpn::ClientConnect::send_app_control_channel_msg |
( |
std::string |
protocol, |
|
|
std::string |
msg |
|
) |
| |
|
inline |
◆ send_explicit_exit_notify()
| void openvpn::ClientConnect::send_explicit_exit_notify |
( |
| ) |
|
|
inline |
◆ server_poll_callback()
| void openvpn::ClientConnect::server_poll_callback |
( |
unsigned int |
gen, |
|
|
const openvpn_io::error_code & |
e |
|
) |
| |
|
inlineprivate |
◆ start()
| void openvpn::ClientConnect::start |
( |
| ) |
|
|
inline |
◆ start_acc_certcheck()
template<typename... ArgsT>
| void openvpn::ClientConnect::start_acc_certcheck |
( |
ArgsT &&... |
args | ) |
|
|
inline |
◆ stop()
| void openvpn::ClientConnect::stop |
( |
| ) |
|
|
inline |
◆ stop_on_signal()
| void openvpn::ClientConnect::stop_on_signal |
( |
const openvpn_io::error_code & |
error, |
|
|
int |
signal_number |
|
) |
| |
|
inline |
◆ test_network()
| bool openvpn::ClientConnect::test_network |
( |
| ) |
const |
|
inlineprivate |
◆ thread_safe_pause()
| void openvpn::ClientConnect::thread_safe_pause |
( |
const std::string & |
reason | ) |
|
|
inline |
◆ thread_safe_post_cc_msg()
| void openvpn::ClientConnect::thread_safe_post_cc_msg |
( |
std::string |
msg | ) |
|
|
inline |
◆ thread_safe_reconnect()
| void openvpn::ClientConnect::thread_safe_reconnect |
( |
int |
seconds | ) |
|
|
inline |
◆ thread_safe_resume()
| void openvpn::ClientConnect::thread_safe_resume |
( |
| ) |
|
|
inline |
◆ thread_safe_send_app_control_channel_msg()
| void openvpn::ClientConnect::thread_safe_send_app_control_channel_msg |
( |
std::string |
protocol, |
|
|
std::string |
msg |
|
) |
| |
|
inline |
◆ thread_safe_stop()
| void openvpn::ClientConnect::thread_safe_stop |
( |
| ) |
|
|
inline |
◆ asio_work
| std::unique_ptr<AsioWork> openvpn::ClientConnect::asio_work |
|
private |
◆ bulk_resolve
◆ client
◆ client_finalized
| bool openvpn::ClientConnect::client_finalized |
|
private |
◆ client_options
◆ conn_timeout
| int openvpn::ClientConnect::conn_timeout |
|
private |
◆ conn_timer
◆ conn_timer_pending
| bool openvpn::ClientConnect::conn_timer_pending |
|
private |
◆ default_delay_
| constexpr std::chrono::milliseconds openvpn::ClientConnect::default_delay_ = 2000ms |
|
staticconstexprprivate |
◆ dont_restart_
| bool openvpn::ClientConnect::dont_restart_ |
|
private |
◆ generation
| unsigned int openvpn::ClientConnect::generation |
|
private |
◆ halt
| bool openvpn::ClientConnect::halt |
|
private |
◆ io_context
| openvpn_io::io_context& openvpn::ClientConnect::io_context |
|
private |
◆ lifecycle_started
| bool openvpn::ClientConnect::lifecycle_started |
|
private |
◆ paused
| bool openvpn::ClientConnect::paused |
|
private |
◆ restart_wait_timer
| AsioTimer openvpn::ClientConnect::restart_wait_timer |
|
private |
◆ server_poll_timer
| AsioTimer openvpn::ClientConnect::server_poll_timer |
|
private |
◆ transport_factory_relay
The documentation for this class was generated from the following file: