OpenVPN 3 Core Library
|
#include <client.hpp>
Public Types | |
typedef RCPtr< Tun > | Ptr |
![]() | |
typedef RCPtr< TunIO > | Ptr |
![]() | |
typedef RCPtr< RC > | Ptr |
Public Member Functions | |
Tun (openvpn_io::io_context &io_context, const int socket, const bool retain_sd_arg, const bool tun_prefix_arg, ReadHandler read_handler_arg, const Frame::Ptr &frame_arg, const SessionStats::Ptr &stats_arg) | |
~Tun () | |
![]() | |
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 |
![]() | |
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 constexpr bool | is_thread_safe () |
Delegates call to RCImpl and returns the result. | |
![]() | |
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) |
![]() | |
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 43 of file client.hpp.
|
private |
Definition at line 45 of file client.hpp.
typedef RCPtr<Tun> openvpn::TunBuilderClient::Tun< ReadHandler >::Ptr |
Definition at line 48 of file client.hpp.
|
inline |
Definition at line 50 of file client.hpp.
|
inline |
Definition at line 65 of file client.hpp.