OpenVPN 3 Core Library
|
#include <tunio.hpp>
Public Types | |
typedef RCPtr< TunIO > | Ptr |
![]() | |
typedef RCPtr< RC > | Ptr |
Public Member Functions | |
TunIO (ReadHandler read_handler_arg, const Frame::Ptr &frame_arg, const SessionStats::Ptr &stats_arg, const size_t frame_context_type=Frame::READ_TUN) | |
TunIO (ReadHandler read_handler_arg, const Frame::Context &frame_context_arg, const SessionStats::Ptr &stats_arg) | |
virtual | ~TunIO () |
bool | write (Buffer &buf) |
template<class BUFSEQ > | |
bool | write_seq (const BUFSEQ &bs) |
void | start (const int n_parallel) |
void | stop () |
std::string | name () const |
![]() | |
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. | |
Protected Member Functions | |
void | queue_read (PacketFrom *tunfrom) |
void | handle_read (typename PacketFrom::SPtr pfp, const openvpn_io::error_code &error, const size_t bytes_recvd) |
void | tun_error (const Error::Type errtype, const openvpn_io::error_code *error) |
Protected Attributes | |
std::string | name_ |
STREAM * | stream = nullptr |
bool | retain_stream = false |
bool | tun_prefix = false |
ReadHandler | read_handler |
const Frame::Context | frame_context |
SessionStats::Ptr | stats |
bool | halt = false |
Private Member Functions | |
void | prepend_pf_inet (Buffer &buf, const std::uint32_t value) |
Additional Inherited Members | |
![]() | |
static constexpr bool | is_thread_safe () |
Delegates call to RCImpl and returns the result. | |
typedef RCPtr<TunIO> openvpn::TunIO< ReadHandler, PacketFrom, STREAM >::Ptr |
|
inline |
|
inline |
|
inlinevirtual |
|
inlineprotected |
|
inline |
|
inlineprivate |
|
inlineprotected |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |