OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::TunWrapAsioStream< TunWrap > Class Template Reference

#include <tunwrapasio.hpp>

Public Member Functions

 TunWrapAsioStream (const typename TunWrap::Ptr &tun_wrap_arg)
 
void release ()
 
template<typename MUTABLE_BUFFER , typename HANDLER >
void async_read_some (const MUTABLE_BUFFER &buffers, HANDLER &&handler)
 
template<typename CONST_BUFFER >
std::size_t write_some (const CONST_BUFFER &buffers)
 
void cancel ()
 
void close ()
 

Private Attributes

TunWrap::Ptr tun_wrap
 

Detailed Description

template<typename TunWrap>
class openvpn::TunWrapAsioStream< TunWrap >

Definition at line 27 of file tunwrapasio.hpp.

Constructor & Destructor Documentation

◆ TunWrapAsioStream()

template<typename TunWrap >
openvpn::TunWrapAsioStream< TunWrap >::TunWrapAsioStream ( const typename TunWrap::Ptr &  tun_wrap_arg)
inline

Definition at line 30 of file tunwrapasio.hpp.

Member Function Documentation

◆ async_read_some()

template<typename TunWrap >
template<typename MUTABLE_BUFFER , typename HANDLER >
void openvpn::TunWrapAsioStream< TunWrap >::async_read_some ( const MUTABLE_BUFFER &  buffers,
HANDLER &&  handler 
)
inline

Definition at line 46 of file tunwrapasio.hpp.

◆ cancel()

template<typename TunWrap >
void openvpn::TunWrapAsioStream< TunWrap >::cancel ( )
inline

Definition at line 57 of file tunwrapasio.hpp.

◆ close()

template<typename TunWrap >
void openvpn::TunWrapAsioStream< TunWrap >::close ( )
inline

Definition at line 62 of file tunwrapasio.hpp.

◆ release()

template<typename TunWrap >
void openvpn::TunWrapAsioStream< TunWrap >::release ( )
inline

Definition at line 36 of file tunwrapasio.hpp.

◆ write_some()

template<typename TunWrap >
template<typename CONST_BUFFER >
std::size_t openvpn::TunWrapAsioStream< TunWrap >::write_some ( const CONST_BUFFER &  buffers)
inline

Definition at line 52 of file tunwrapasio.hpp.

Member Data Documentation

◆ tun_wrap

template<typename TunWrap >
TunWrap::Ptr openvpn::TunWrapAsioStream< TunWrap >::tun_wrap
private

Definition at line 68 of file tunwrapasio.hpp.


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