OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::ServerProto::Factory Class Reference

#include <servproto.hpp>

Inheritance diagram for openvpn::ServerProto::Factory:
[legend]
Collaboration diagram for openvpn::ServerProto::Factory:
[legend]

Public Types

typedef RCPtr< FactoryPtr
 
typedef ProtoContext::ProtoConfig ProtoConfig
 
- Public Types inherited from openvpn::TransportClientInstance::Factory
typedef RCPtr< FactoryPtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

 Factory (openvpn_io::io_context &io_context_arg, const ProtoConfig &c)
 
TransportClientInstance::Recv::Ptr new_client_instance () override
 
bool validate_initial_packet (const BufferAllocated &net_buf) override
 
ProtoConfig::Ptr clone_proto_config () const
 
- Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 

Public Attributes

openvpn_io::io_context & io_context
 
ProtoConfig::Ptr proto_context_config
 
ManClientInstance::Factory::Ptr man_factory
 
TunClientInstance::Factory::Ptr tun_factory
 
SessionStats::Ptr stats
 

Private Attributes

ProtoContext::TLSWrapPreValidate::Ptr tls_auth_preval
 
ProtoContext::TLSWrapPreValidate::Ptr tls_crypt_preval
 

Additional Inherited Members

- Static Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 

Detailed Description

Definition at line 53 of file servproto.hpp.

Member Typedef Documentation

◆ ProtoConfig

◆ Ptr

Definition at line 56 of file servproto.hpp.

Constructor & Destructor Documentation

◆ Factory()

openvpn::ServerProto::Factory::Factory ( openvpn_io::io_context &  io_context_arg,
const ProtoConfig c 
)
inline

Definition at line 59 of file servproto.hpp.

Member Function Documentation

◆ clone_proto_config()

ProtoConfig::Ptr openvpn::ServerProto::Factory::clone_proto_config ( ) const
inline

Definition at line 86 of file servproto.hpp.

◆ new_client_instance()

TransportClientInstance::Recv::Ptr openvpn::ServerProto::Factory::new_client_instance ( )
inlineoverridevirtual

Implements openvpn::TransportClientInstance::Factory.

Definition at line 784 of file servproto.hpp.

◆ validate_initial_packet()

bool openvpn::ServerProto::Factory::validate_initial_packet ( const BufferAllocated net_buf)
inlineoverridevirtual

Implements openvpn::TransportClientInstance::Factory.

Definition at line 72 of file servproto.hpp.

Member Data Documentation

◆ io_context

openvpn_io::io_context& openvpn::ServerProto::Factory::io_context

Definition at line 91 of file servproto.hpp.

◆ man_factory

ManClientInstance::Factory::Ptr openvpn::ServerProto::Factory::man_factory

Definition at line 94 of file servproto.hpp.

◆ proto_context_config

ProtoConfig::Ptr openvpn::ServerProto::Factory::proto_context_config

Definition at line 92 of file servproto.hpp.

◆ stats

SessionStats::Ptr openvpn::ServerProto::Factory::stats

Definition at line 97 of file servproto.hpp.

◆ tls_auth_preval

ProtoContext::TLSWrapPreValidate::Ptr openvpn::ServerProto::Factory::tls_auth_preval
private

Definition at line 100 of file servproto.hpp.

◆ tls_crypt_preval

ProtoContext::TLSWrapPreValidate::Ptr openvpn::ServerProto::Factory::tls_crypt_preval
private

Definition at line 101 of file servproto.hpp.

◆ tun_factory

TunClientInstance::Factory::Ptr openvpn::ServerProto::Factory::tun_factory

Definition at line 95 of file servproto.hpp.


The documentation for this class was generated from the following file: