15#ifndef OPENVPN_TUN_WIN_CLIENT_SETUPBASE_H
16#define OPENVPN_TUN_WIN_CLIENT_SETUPBASE_H
41 const std::wstring &openvpn_app_path,
52 std::ostream &os) = 0;
75 bool allow_local_dns_resolvers) = 0;
Reference count base class for objects tracked by RCPtr. Disallows copying and assignment.
static void handler(int signum)
DNS utilities for Windows.
virtual bool l2_ready(const TunBuilderCapture &pull)=0
virtual void set_adapter_state(const Util::TapNameGuidPair &state)=0
virtual HANDLE establish(const TunBuilderCapture &pull, const std::wstring &openvpn_app_path, Stop *stop, std::ostream &os, RingBuffer::Ptr rings)=0
virtual HANDLE get_handle(std::ostream &os)=0
OPENVPN_EXCEPTION(tun_win_setup)
virtual Util::TapNameGuidPair get_adapter_state()=0
virtual void l2_finish(const TunBuilderCapture &pull, Stop *stop, std::ostream &os)=0
virtual void set_service_fail_handler(std::function< void()> &&handler)
virtual SetupBase::Ptr new_setup_obj(openvpn_io::io_context &io_context, const TunWin::Type tun_type, bool allow_local_dns_resolvers)=0
RCPtr< SetupFactory > Ptr