MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3 / setup_async_stop_scopes

Method setup_async_stop_scopes

client/ovpncli.cpp:551–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549 }
550
551 void setup_async_stop_scopes()
552 {
553 stop_scope_local.reset(new AsioStopScope(*io_context(), async_stop_local(), [this]() {
554 OPENVPN_ASYNC_HANDLER;
555 session->graceful_stop();
556 }));
557
558 stop_scope_global.reset(new AsioStopScope(*io_context(), async_stop_global(), [this]() {
559 OPENVPN_ASYNC_HANDLER;
560 trigger_async_stop_local();
561 }));
562 }
563
564 private:
565 ClientState(const ClientState&) = delete;

Callers 1

connect_setupMethod · 0.80

Calls 2

graceful_stopMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected