OpenVPN 3 Core Library
|
#include <dcocli.hpp>
Public Member Functions | |
bool | transport_send_queue_empty () override |
bool | transport_has_send_queue () override |
size_t | transport_send_queue_size () override |
void | reset_align_adjust (const size_t align_adjust) override |
void | transport_stop_requeueing () override |
void | server_endpoint_info (std::string &host, std::string &port, std::string &proto, std::string &ip_addr) const override |
void | stop () override |
void | set_disconnect () override |
bool | tun_send (BufferAllocated &buf) override |
std::string | vpn_ip4 () const override |
std::string | vpn_ip6 () const override |
std::string | vpn_gw4 () const override |
std::string | vpn_gw6 () const override |
int | vpn_mtu () const override |
![]() | |
virtual void | transport_start ()=0 |
virtual bool | transport_send_const (const Buffer &buf)=0 |
virtual bool | transport_send (BufferAllocated &buf)=0 |
virtual IP::Addr | server_endpoint_addr () const =0 |
virtual unsigned short | server_endpoint_port () const |
virtual openvpn_io::detail::socket_type | native_handle () |
virtual Protocol | transport_protocol () const =0 |
![]() | |
RC () noexcept=default | |
RC (const RC &)=delete | |
virtual | ~RC ()=default |
RC & | operator= (const RC &)=delete |
olong | use_count () const noexcept |
Delegates call to RCImpl and returns the result. | |
![]() | |
virtual void | tun_start (const OptionList &, TransportClient &, CryptoDCSettings &)=0 |
virtual std::string | tun_name () const =0 |
virtual void | adjust_mss (int mss) |
virtual void | apply_push_update (const OptionList &opt, TransportClient &cli) |
Notifies tun client about received PUSH_UPDATE control channel message. | |
virtual std::uint32_t | vpn_interface_index () const |
![]() | |
AsyncResolvable (openvpn_io::io_context &io_context_arg) | |
virtual | ~AsyncResolvable () |
virtual void | resolve_callback (const openvpn_io::error_code &error, results_type results)=0 |
virtual void | async_resolve_name (const std::string &host, const std::string &port) |
void | async_resolve_lock () |
void | async_resolve_cancel () |
AsyncResolvable (openvpn_io::io_context &io_context_arg) | |
virtual void | resolve_callback (const openvpn_io::error_code &error, results_type results)=0 |
virtual void | async_resolve_name (const std::string &host, const std::string &port) |
void | async_resolve_lock () |
void | async_resolve_cancel () |
Protected Member Functions | |
Client (openvpn_io::io_context &io_context_arg, ClientConfig *config_arg, TransportClientParent *parent_arg) | |
void | transport_reparent (TransportClientParent *parent_arg) override |
virtual void | stop_ ()=0 |
Protected Attributes | |
openvpn_io::io_context & | io_context |
bool | halt |
TunProp::State::Ptr | state |
ClientConfig::Ptr | config |
TransportClientParent * | transport_parent |
TunClientParent * | tun_parent |
ActionList::Ptr | remove_cmds |
std::string | server_host |
std::string | server_port |
uint32_t | peer_id |
Private Types | |
typedef RCPtr< Client > | Ptr |
Friends | |
class | ClientConfig |
Additional Inherited Members | |
![]() | |
typedef RCPtr< TransportClient > | Ptr |
![]() | |
typedef RCPtr< RC > | Ptr |
![]() | |
typedef RCPtr< TunClient > | Ptr |
![]() | |
using | resolver_type = RESOLVER_TYPE |
using | results_type = typename RESOLVER_TYPE::results_type |
using | resolver_type = RESOLVER_TYPE |
using | results_type = typename RESOLVER_TYPE::results_type |
![]() | |
static constexpr bool | is_thread_safe () |
Delegates call to RCImpl and returns the result. | |
Definition at line 146 of file dcocli.hpp.
|
private |
Definition at line 152 of file dcocli.hpp.
|
inlineprotected |
Definition at line 247 of file dcocli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TransportClient.
Definition at line 172 of file dcocli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TransportClient.
Definition at line 180 of file dcocli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 200 of file dcocli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TransportClient.
Definition at line 193 of file dcocli.hpp.
|
protectedpure virtual |
|
inlineoverridevirtual |
Implements openvpn::TransportClient.
Definition at line 162 of file dcocli.hpp.
|
inlineoverrideprotectedvirtual |
Implements openvpn::TransportClient.
Definition at line 257 of file dcocli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TransportClient.
Definition at line 157 of file dcocli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TransportClient.
Definition at line 167 of file dcocli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TransportClient.
Definition at line 176 of file dcocli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 204 of file dcocli.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::TunClient.
Definition at line 225 of file dcocli.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::TunClient.
Definition at line 233 of file dcocli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 209 of file dcocli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 217 of file dcocli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 241 of file dcocli.hpp.
|
friend |
Definition at line 150 of file dcocli.hpp.
|
protected |
Definition at line 269 of file dcocli.hpp.
|
protected |
Definition at line 265 of file dcocli.hpp.
|
protected |
Definition at line 264 of file dcocli.hpp.
|
protected |
Definition at line 278 of file dcocli.hpp.
|
protected |
Definition at line 273 of file dcocli.hpp.
|
protected |
Definition at line 275 of file dcocli.hpp.
|
protected |
Definition at line 276 of file dcocli.hpp.
|
protected |
Definition at line 267 of file dcocli.hpp.
|
protected |
Definition at line 270 of file dcocli.hpp.
|
protected |
Definition at line 271 of file dcocli.hpp.