#include <omi.hpp>
|
| bool | command_in (std::unique_ptr< Command > cmd) |
| |
| bool | is_hold_cmd (const Option &o) const |
| |
| std::string | hold_cmd (const Option &o, bool &release) |
| |
| void | hold_cycle () |
| |
| void | hold_release () |
| |
| void | process_bytecount_cmd (const Option &o) |
| |
| void | process_signal_cmd (const Option &o) |
| |
| bool | command_is_multiline (const Option &o) |
| |
| bool | is_sock_open () const |
| |
| void | conditional_stop (const bool eof) |
| |
| void | stop_omi_client (const bool eof, const unsigned int milliseconds) |
| |
| void | stop_omi_client (const bool eof) |
| |
| void | send_title_message () |
| |
| void | send_password_prompt () |
| |
| void | send_password_correct () |
| |
| bool | process_password () |
| |
| bool | process_in_line () |
| |
| void | listen_tcp (const std::string &addr, const std::string &port) |
| |
| void | listen_unix (const std::string &socket_path) |
| |
| void | queue_accept () |
| |
| void | verify_sock_peer (AsioPolySock::Base &sock) |
| |
| void | handle_accept (AsioPolySock::Base::Ptr sock, const openvpn_io::error_code &error) override |
| |
| void | connect_tcp (const std::string &addr, const std::string &port) |
| |
| void | connect_unix (const std::string &socket_path) |
| |
| void | queue_recv () |
| |
| void | handle_recv (const openvpn_io::error_code &error, const size_t bytes_recvd, BufferPtr buf, const AsioPolySock::Base *queued_socket) |
| |
| void | process_recv () |
| |
| void | queue_send () |
| |
| void | handle_send (const openvpn_io::error_code &error, const size_t bytes_sent, const AsioPolySock::Base *queued_socket) |
| |
Definition at line 50 of file omi.hpp.
◆ Ptr
◆ OMICore()
| openvpn::OMICore::OMICore |
( |
openvpn_io::io_context & |
io_context_arg | ) |
|
|
inlineprotected |
◆ async_done()
| void openvpn::OMICore::async_done |
( |
| ) |
|
|
inlineprotected |
◆ command_in()
| bool openvpn::OMICore::command_in |
( |
std::unique_ptr< Command > |
cmd | ) |
|
|
inlineprivate |
◆ command_is_multiline()
| bool openvpn::OMICore::command_is_multiline |
( |
const Option & |
o | ) |
|
|
inlineprivate |
◆ conditional_stop()
| void openvpn::OMICore::conditional_stop |
( |
const bool |
eof | ) |
|
|
inlineprivate |
◆ connect_tcp()
| void openvpn::OMICore::connect_tcp |
( |
const std::string & |
addr, |
|
|
const std::string & |
port |
|
) |
| |
|
inlineprivate |
◆ connect_unix()
| void openvpn::OMICore::connect_unix |
( |
const std::string & |
socket_path | ) |
|
|
inlineprivate |
◆ echo_line()
| void openvpn::OMICore::echo_line |
( |
const std::string & |
line | ) |
|
|
inlineprotected |
◆ get_bytecount()
| unsigned int openvpn::OMICore::get_bytecount |
( |
| ) |
const |
|
inlineprotected |
◆ get_config()
| static std::string openvpn::OMICore::get_config |
( |
const OptionList & |
opt | ) |
|
|
inlinestaticprotected |
◆ handle_accept()
|
|
inlineoverrideprivatevirtual |
◆ handle_recv()
| void openvpn::OMICore::handle_recv |
( |
const openvpn_io::error_code & |
error, |
|
|
const size_t |
bytes_recvd, |
|
|
BufferPtr |
buf, |
|
|
const AsioPolySock::Base * |
queued_socket |
|
) |
| |
|
inlineprivate |
◆ handle_send()
| void openvpn::OMICore::handle_send |
( |
const openvpn_io::error_code & |
error, |
|
|
const size_t |
bytes_sent, |
|
|
const AsioPolySock::Base * |
queued_socket |
|
) |
| |
|
inlineprivate |
◆ hold_cmd()
| std::string openvpn::OMICore::hold_cmd |
( |
const Option & |
o, |
|
|
bool & |
release |
|
) |
| |
|
inlineprivate |
◆ hold_cycle()
| void openvpn::OMICore::hold_cycle |
( |
| ) |
|
|
inlineprivate |
◆ hold_release()
| void openvpn::OMICore::hold_release |
( |
| ) |
|
|
inlineprivate |
◆ is_errors_to_stderr()
| bool openvpn::OMICore::is_errors_to_stderr |
( |
| ) |
const |
|
inlineprotected |
◆ is_hold_cmd()
| bool openvpn::OMICore::is_hold_cmd |
( |
const Option & |
o | ) |
const |
|
inlineprivate |
◆ is_sock_open()
| bool openvpn::OMICore::is_sock_open |
( |
| ) |
const |
|
inlineprivate |
◆ is_stopping()
| bool openvpn::OMICore::is_stopping |
( |
| ) |
const |
|
inlineprotected |
◆ listen_tcp()
| void openvpn::OMICore::listen_tcp |
( |
const std::string & |
addr, |
|
|
const std::string & |
port |
|
) |
| |
|
inlineprivate |
◆ listen_unix()
| void openvpn::OMICore::listen_unix |
( |
const std::string & |
socket_path | ) |
|
|
inlineprivate |
◆ log_full()
| void openvpn::OMICore::log_full |
( |
const std::string & |
text | ) |
|
|
inlineprotected |
◆ log_line()
| void openvpn::OMICore::log_line |
( |
const std::string & |
line | ) |
|
|
inlineprotected |
◆ log_setup()
| void openvpn::OMICore::log_setup |
( |
const LogFn & |
log | ) |
|
|
inlineprotected |
◆ log_timestamp()
| void openvpn::OMICore::log_timestamp |
( |
const time_t |
timestamp, |
|
|
const std::string & |
text |
|
) |
| |
|
inlineprotected |
◆ omi_command_in()
| virtual bool openvpn::OMICore::omi_command_in |
( |
const std::string & |
arg0, |
|
|
const Command & |
cmd |
|
) |
| |
|
protectedpure virtual |
◆ omi_command_is_multiline()
| virtual bool openvpn::OMICore::omi_command_is_multiline |
( |
const std::string & |
arg0, |
|
|
const Option & |
option |
|
) |
| |
|
protectedpure virtual |
◆ omi_done()
| virtual void openvpn::OMICore::omi_done |
( |
const bool |
eof | ) |
|
|
protectedpure virtual |
◆ omi_is_sighup_implemented()
| virtual bool openvpn::OMICore::omi_is_sighup_implemented |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ omi_sighup()
| virtual void openvpn::OMICore::omi_sighup |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ omi_sigterm()
| virtual void openvpn::OMICore::omi_sigterm |
( |
| ) |
|
|
protectedpure virtual |
◆ omi_start_connection()
| virtual void openvpn::OMICore::omi_start_connection |
( |
| ) |
|
|
protectedpure virtual |
◆ omi_stop()
| virtual bool openvpn::OMICore::omi_stop |
( |
| ) |
|
|
protectedpure virtual |
◆ OPENVPN_EXCEPTION()
| openvpn::OMICore::OPENVPN_EXCEPTION |
( |
omi_error |
| ) |
|
◆ process_bytecount_cmd()
| void openvpn::OMICore::process_bytecount_cmd |
( |
const Option & |
o | ) |
|
|
inlineprivate |
◆ process_in_line()
| bool openvpn::OMICore::process_in_line |
( |
| ) |
|
|
inlineprivate |
◆ process_password()
| bool openvpn::OMICore::process_password |
( |
| ) |
|
|
inlineprivate |
◆ process_recv()
| void openvpn::OMICore::process_recv |
( |
| ) |
|
|
inlineprivate |
◆ process_signal_cmd()
| void openvpn::OMICore::process_signal_cmd |
( |
const Option & |
o | ) |
|
|
inlineprivate |
◆ queue_accept()
| void openvpn::OMICore::queue_accept |
( |
| ) |
|
|
inlineprivate |
◆ queue_recv()
| void openvpn::OMICore::queue_recv |
( |
| ) |
|
|
inlineprivate |
◆ queue_send()
| void openvpn::OMICore::queue_send |
( |
| ) |
|
|
inlineprivate |
◆ read_config()
| static std::string openvpn::OMICore::read_config |
( |
const std::string & |
fn | ) |
|
|
inlinestaticprivate |
◆ send() [1/2]
◆ send() [2/2]
| void openvpn::OMICore::send |
( |
const std::string & |
str | ) |
|
|
inlineprotected |
◆ send_password_correct()
| void openvpn::OMICore::send_password_correct |
( |
| ) |
|
|
inlineprivate |
◆ send_password_prompt()
| void openvpn::OMICore::send_password_prompt |
( |
| ) |
|
|
inlineprivate |
◆ send_ready()
| bool openvpn::OMICore::send_ready |
( |
| ) |
const |
|
inlineprotected |
◆ send_title_message()
| void openvpn::OMICore::send_title_message |
( |
| ) |
|
|
inlineprivate |
◆ start()
| void openvpn::OMICore::start |
( |
const OptionList & |
opt | ) |
|
|
inlineprotected |
◆ start_connection_if_not_hold()
| void openvpn::OMICore::start_connection_if_not_hold |
( |
| ) |
|
|
inlineprotected |
◆ state_line()
| void openvpn::OMICore::state_line |
( |
const std::string & |
line | ) |
|
|
inlineprotected |
◆ stop()
| void openvpn::OMICore::stop |
( |
| ) |
|
|
inline |
◆ stop_omi_client() [1/2]
| void openvpn::OMICore::stop_omi_client |
( |
const bool |
eof | ) |
|
|
inlineprivate |
◆ stop_omi_client() [2/2]
| void openvpn::OMICore::stop_omi_client |
( |
const bool |
eof, |
|
|
const unsigned int |
milliseconds |
|
) |
| |
|
inlineprivate |
◆ verify_sock_peer()
◆ acceptor
◆ asio_work
| std::unique_ptr<AsioWork> openvpn::OMICore::asio_work |
|
private |
◆ bytecount
| unsigned int openvpn::OMICore::bytecount = 0 |
|
private |
◆ command
| std::unique_ptr<Command> openvpn::OMICore::command |
|
private |
◆ content_out
| std::deque<BufferPtr> openvpn::OMICore::content_out |
|
private |
◆ content_out_throttle
| std::unique_ptr<BufferThrottle> openvpn::OMICore::content_out_throttle |
|
private |
◆ errors_to_stderr
| bool openvpn::OMICore::errors_to_stderr = false |
|
private |
◆ hist_echo
| History openvpn::OMICore::hist_echo {"echo", 100} |
|
private |
◆ hist_log
| History openvpn::OMICore::hist_log {"log", 100} |
|
private |
◆ hist_state
| History openvpn::OMICore::hist_state {"state", 100} |
|
private |
◆ hold_flag
| bool openvpn::OMICore::hold_flag = false |
|
private |
◆ hold_wait
| bool openvpn::OMICore::hold_wait = false |
|
private |
◆ in_buf
◆ in_partial
| std::string openvpn::OMICore::in_partial |
|
private |
◆ io_context
| openvpn_io::io_context& openvpn::OMICore::io_context |
|
protected |
◆ management_client_root
| bool openvpn::OMICore::management_client_root = false |
|
private |
◆ multiline
| bool openvpn::OMICore::multiline = false |
|
private |
◆ password
| std::string openvpn::OMICore::password |
|
private |
◆ password_defined
| bool openvpn::OMICore::password_defined = false |
|
private |
◆ password_verified
| bool openvpn::OMICore::password_verified = false |
|
private |
◆ recv_queued
| bool openvpn::OMICore::recv_queued = false |
|
private |
◆ socket
◆ stop_called
| volatile bool openvpn::OMICore::stop_called = false |
|
private |
◆ stop_timer
The documentation for this class was generated from the following file: