|
OpenVPN 3 Core Library
|
#include <tuncli.hpp>
Public Types | |
| typedef RCPtr< Tun > | Ptr |
Public Types inherited from openvpn::TunIO< ReadHandler, PacketFrom, openvpn_io::posix::stream_descriptor > | |
| typedef RCPtr< TunIO > | Ptr |
Public Types inherited from openvpn::RC< thread_unsafe_refcount > | |
| typedef RCPtr< RC > | Ptr |
Public Member Functions | |
| Tun (openvpn_io::io_context &io_context, ReadHandler read_handler_arg, const Frame::Ptr &frame_arg, const SessionStats::Ptr &stats_arg, const int socket, const std::string &name) | |
| ~Tun () | |
Public Member Functions inherited from openvpn::TunIO< ReadHandler, PacketFrom, openvpn_io::posix::stream_descriptor > | |
| 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, openvpn_io::posix::stream_descriptor > | 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, openvpn_io::posix::stream_descriptor > | |
| 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, openvpn_io::posix::stream_descriptor > | |
| std::string | name_ |
| openvpn_io::posix::stream_descriptor * | stream |
| bool | retain_stream |
| bool | tun_prefix |
| ReadHandler | read_handler |
| const Frame::Context | frame_context |
| SessionStats::Ptr | stats |
| bool | halt |
Definition at line 34 of file tuncli.hpp.
|
private |
Definition at line 36 of file tuncli.hpp.
| typedef RCPtr<Tun> openvpn::TunLinux::Tun< ReadHandler >::Ptr |
Definition at line 39 of file tuncli.hpp.
|
inline |
Definition at line 41 of file tuncli.hpp.
|
inline |
Definition at line 55 of file tuncli.hpp.