|
OpenVPN 3 Core Library
|
#include <tcplinkcommon.hpp>
Public Types | |
| using | Ptr = RCPtr< LinkCommon< Protocol, ReadHandler, RAW_MODE_ONLY > > |
| using | protocol = Protocol |
| using | OpenVPNPacketStream = PacketStream< std::uint16_t > |
Public Types inherited from openvpn::TCPTransport::LinkBase | |
| using | Ptr = RCPtr< LinkBase > |
Public Types inherited from openvpn::RC< thread_unsafe_refcount > | |
| using | Ptr = RCPtr< RC > |
Public Member Functions | |
| 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) |
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. | |
Protected Member Functions | |
| 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 () |
Protected Attributes | |
| 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 |
Private Types | |
| using | Queue = std::deque< BufferPtr > |
Private Member Functions | |
| virtual void | recv_buffer (PacketFrom::SPtr &pfp, const size_t bytes_recvd)=0 |
| virtual void | from_app_send_buffer (BufferPtr &buf)=0 |
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. | |
Definition at line 47 of file tcplinkcommon.hpp.
| using openvpn::TCPTransport::LinkCommon< Protocol, ReadHandler, RAW_MODE_ONLY >::OpenVPNPacketStream = PacketStream<std::uint16_t> |
Definition at line 54 of file tcplinkcommon.hpp.
| using openvpn::TCPTransport::LinkCommon< Protocol, ReadHandler, RAW_MODE_ONLY >::protocol = Protocol |
Definition at line 53 of file tcplinkcommon.hpp.
| using openvpn::TCPTransport::LinkCommon< Protocol, ReadHandler, RAW_MODE_ONLY >::Ptr = RCPtr<LinkCommon<Protocol, ReadHandler, RAW_MODE_ONLY> > |
Definition at line 52 of file tcplinkcommon.hpp.
|
private |
Definition at line 49 of file tcplinkcommon.hpp.
|
inlineprotected |
Definition at line 221 of file tcplinkcommon.hpp.
|
inlineprotected |
Definition at line 264 of file tcplinkcommon.hpp.
|
privatepure virtual |
Implements openvpn::TCPTransport::LinkBase.
Implemented in openvpn::TCPTransport::TCPLink< Protocol, ReadHandler, RAW_MODE_ONLY >.
|
inlineprotected |
Definition at line 376 of file tcplinkcommon.hpp.
|
inlineprotected |
Definition at line 287 of file tcplinkcommon.hpp.
|
inline |
Definition at line 93 of file tcplinkcommon.hpp.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
privatepure virtual |
Implements openvpn::TCPTransport::LinkBase.
Implemented in openvpn::TCPTransport::TCPLink< Protocol, ReadHandler, RAW_MODE_ONLY >.
|
inlinevirtual |
Implements openvpn::TCPTransport::LinkBase.
Definition at line 122 of file tcplinkcommon.hpp.
|
inlinevirtual |
Implements openvpn::TCPTransport::LinkBase.
Definition at line 136 of file tcplinkcommon.hpp.
|
inlinevirtual |
Implements openvpn::TCPTransport::LinkBase.
Definition at line 88 of file tcplinkcommon.hpp.
|
inlinevirtual |
Implements openvpn::TCPTransport::LinkBase.
Definition at line 127 of file tcplinkcommon.hpp.
|
inline |
Definition at line 83 of file tcplinkcommon.hpp.
|
inlinevirtual |
Implements openvpn::TCPTransport::LinkBase.
Definition at line 61 of file tcplinkcommon.hpp.
|
inline |
|
inline |
|
inlinevirtual |
Implements openvpn::TCPTransport::LinkBase.
Definition at line 107 of file tcplinkcommon.hpp.
|
inlinevirtual |
Implements openvpn::TCPTransport::LinkBase.
Definition at line 113 of file tcplinkcommon.hpp.
|
inlineprotected |
|
protected |
Definition at line 456 of file tcplinkcommon.hpp.
|
protected |
Definition at line 461 of file tcplinkcommon.hpp.
|
protected |
Definition at line 459 of file tcplinkcommon.hpp.
|
protected |
Definition at line 466 of file tcplinkcommon.hpp.
|
protected |
Definition at line 463 of file tcplinkcommon.hpp.
|
protected |
Definition at line 462 of file tcplinkcommon.hpp.
|
protected |
Definition at line 460 of file tcplinkcommon.hpp.
|
protected |
Definition at line 464 of file tcplinkcommon.hpp.
|
protected |
Definition at line 465 of file tcplinkcommon.hpp.
|
protected |
Definition at line 455 of file tcplinkcommon.hpp.
|
protected |
Definition at line 458 of file tcplinkcommon.hpp.
|
protected |
Definition at line 454 of file tcplinkcommon.hpp.
|
protected |
Definition at line 457 of file tcplinkcommon.hpp.