OpenVPN 3 Core Library
|
#include <tcplink.hpp>
Public Types | |
typedef LinkCommon< Protocol, ReadHandler, RAW_MODE_ONLY > | Base |
typedef RCPtr< TCPLink > | Ptr |
typedef Protocol | protocol |
![]() | |
typedef RCPtr< LinkCommon< Protocol, ReadHandler, RAW_MODE_ONLY > > | Ptr |
typedef Protocol | protocol |
typedef PacketStream< std::uint16_t > | OpenVPNPacketStream |
![]() | |
typedef RCPtr< LinkBase > | Ptr |
![]() | |
typedef RCPtr< RC > | Ptr |
Public Member Functions | |
TCPLink (ReadHandler read_handler_arg, typename Protocol::socket &socket_arg, const size_t send_queue_max_size_arg, const size_t free_list_max_size_arg, const Frame::Context &frame_context_arg, const SessionStats::Ptr &stats_arg) | |
![]() | |
void | set_raw_mode (const bool mode) |
void | set_raw_mode_read (const bool mode) |
void | set_raw_mode_write (const bool mode) |
void | set_mutate (const TransportMutateStream::Ptr &mutate_arg) |
bool | send_queue_empty () const |
void | inject (const Buffer &src) |
void | start () |
void | stop () |
void | reset_align_adjust (const size_t align_adjust) |
size_t | send_queue_size () const |
bool | send (BufferAllocated &b) |
void | queue_recv (PacketFrom *tcpfrom) |
![]() | |
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. | |
Public Attributes | |
friend | Base |
Private Types | |
typedef std::deque< BufferPtr > | Queue |
Private Member Functions | |
virtual void | from_app_send_buffer (BufferPtr &buf) override |
virtual void | recv_buffer (PacketFrom::SPtr &pfp, const size_t bytes_recvd) override |
Additional Inherited Members | |
![]() | |
static constexpr bool | is_thread_safe () |
Delegates call to RCImpl and returns the result. | |
![]() | |
LinkCommon (ReadHandler read_handler_arg, typename Protocol::socket &socket_arg, const size_t send_queue_max_size_arg, const size_t free_list_max_size_arg, const Frame::Context &frame_context_arg, const SessionStats::Ptr &stats_arg) | |
bool | is_raw_mode () const |
bool | is_raw_mode_read () const |
bool | is_raw_mode_write () const |
LinkCommon () | |
void | queue_send_buffer (BufferPtr &buf) |
void | queue_send () |
void | handle_send (const openvpn_io::error_code &error, const size_t bytes_sent) |
bool | process_recv_buffer (BufferAllocated &buf) |
void | handle_recv (PacketFrom::SPtr pfp, const openvpn_io::error_code &error, const size_t bytes_recvd) |
bool | put_pktstream (BufferAllocated &buf, BufferAllocated &pkt) |
void | tcp_write_queue_needs_send () |
![]() | |
Protocol::socket & | socket |
ReadHandler | read_handler |
Frame::Context | frame_context |
SessionStats::Ptr | stats |
const size_t | send_queue_max_size |
const size_t | free_list_max_size |
Queue | queue |
Queue | free_list |
OpenVPNPacketStream | pktstream |
TransportMutateStream::Ptr | mutate |
bool | raw_mode_read |
bool | raw_mode_write |
bool | halt = false |
Definition at line 40 of file tcplink.hpp.
Definition at line 50 of file tcplink.hpp.
typedef Protocol openvpn::TCPTransport::TCPLink< Protocol, ReadHandler, RAW_MODE_ONLY >::protocol |
Definition at line 53 of file tcplink.hpp.
typedef RCPtr<TCPLink> openvpn::TCPTransport::TCPLink< Protocol, ReadHandler, RAW_MODE_ONLY >::Ptr |
Definition at line 51 of file tcplink.hpp.
|
private |
Definition at line 44 of file tcplink.hpp.
|
inline |
Definition at line 57 of file tcplink.hpp.
|
inlineoverrideprivatevirtual |
Implements openvpn::TCPTransport::LinkCommon< Protocol, ReadHandler, RAW_MODE_ONLY >.
Definition at line 74 of file tcplink.hpp.
|
inlineoverrideprivatevirtual |
Implements openvpn::TCPTransport::LinkCommon< Protocol, ReadHandler, RAW_MODE_ONLY >.
Definition at line 79 of file tcplink.hpp.
friend openvpn::TCPTransport::TCPLink< Protocol, ReadHandler, RAW_MODE_ONLY >::Base |
Definition at line 55 of file tcplink.hpp.