|
OpenVPN 3 Core Library
|
#include <tuncli.hpp>
Public Types | |
| typedef RCPtr< Tun > | Ptr |
Public Types inherited from openvpn::TunIO< ReadHandler, PacketFrom, TunWrapAsioStream< TunPersist > > | |
| typedef RCPtr< TunIO > | Ptr |
Public Types inherited from openvpn::RC< thread_unsafe_refcount > | |
| typedef RCPtr< RC > | Ptr |
Public Member Functions | |
| Tun (const typename TunPersist::Ptr &tun_persist, const std::string &name, const bool retain_stream, const bool tun_prefix, ReadHandler read_handler, const Frame::Ptr &frame, const SessionStats::Ptr &stats) | |
Public Member Functions inherited from openvpn::TunIO< ReadHandler, PacketFrom, TunWrapAsioStream< TunPersist > > | |
| 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) |
| bool | write_seq (const BUFSEQ &bs) |
| void | start (const int n_parallel) |
| void | stop () |
| std::string | name () const |
Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount > | |
| 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. | |
Private Types | |
| typedef TunIO< ReadHandler, PacketFrom, TunWrapAsioStream< TunPersist > > | Base |
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. | |
Protected Member Functions inherited from openvpn::TunIO< ReadHandler, PacketFrom, TunWrapAsioStream< TunPersist > > | |
| 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 inherited from openvpn::TunIO< ReadHandler, PacketFrom, TunWrapAsioStream< TunPersist > > | |
| std::string | name_ |
| TunWrapAsioStream< TunPersist > * | stream |
| bool | retain_stream |
| bool | tun_prefix |
| ReadHandler | read_handler |
| const Frame::Context | frame_context |
| SessionStats::Ptr | stats |
| bool | halt |
Definition at line 49 of file tuncli.hpp.
|
private |
Definition at line 51 of file tuncli.hpp.
| typedef RCPtr<Tun> openvpn::TunMac::Tun< ReadHandler, TunPersist >::Ptr |
Definition at line 54 of file tuncli.hpp.
|
inline |
Definition at line 56 of file tuncli.hpp.