OpenVPN 3 Core Library
Loading...
Searching...
No Matches
mutate.hpp
Go to the documentation of this file.
1
// OpenVPN -- An application to securely tunnel IP networks
2
// over a single port, with support for SSL/TLS-based
3
// session authentication and key exchange,
4
// packet encryption, packet authentication, and
5
// packet compression.
6
//
7
// Copyright (C) 2012- OpenVPN Inc.
8
//
9
// SPDX-License-Identifier: MPL-2.0 OR AGPL-3.0-only WITH openvpn3-openssl-exception
10
//
11
12
#ifndef OPENVPN_TRANSPORT_MUTATE_H
13
#define OPENVPN_TRANSPORT_MUTATE_H
14
15
#include <
openvpn/common/rc.hpp
>
16
#include <
openvpn/buffer/buffer.hpp
>
17
18
namespace
openvpn
{
19
20
class
TransportMutateStream
:
public
RC
<thread_unsafe_refcount>
21
{
22
public
:
23
typedef
RCPtr<TransportMutateStream>
Ptr
;
24
25
virtual
void
pre_send
(
BufferAllocated
&buf) = 0;
26
virtual
void
post_recv
(
BufferAllocated
&buf) = 0;
27
};
28
}
// namespace openvpn
29
30
#endif
buffer.hpp
openvpn::BufferAllocatedType< unsigned char >
openvpn::RCPtr
The smart pointer class.
Definition
rc.hpp:119
openvpn::RC
Reference count base class for objects tracked by RCPtr. Disallows copying and assignment.
Definition
rc.hpp:912
openvpn::TransportMutateStream
Definition
mutate.hpp:21
openvpn::TransportMutateStream::post_recv
virtual void post_recv(BufferAllocated &buf)=0
openvpn::TransportMutateStream::pre_send
virtual void pre_send(BufferAllocated &buf)=0
openvpn::TransportMutateStream::Ptr
RCPtr< TransportMutateStream > Ptr
Definition
mutate.hpp:23
openvpn
Definition
ovpncli.cpp:97
rc.hpp
openvpn
transport
mutate.hpp
Generated by
1.9.8