OpenVPN 3 Core Library
Loading...
Searching...
No Matches
complog.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
#pragma once
13
14
namespace
openvpn
{
15
inline
void
log_compress
(
const
std::string prefix,
const
size_t
orig_size,
const
size_t
new_size)
16
{
17
OPENVPN_LOG
(prefix
18
<<
' '
<< orig_size
19
<<
" -> "
<< new_size
20
<<
" -- compression ratio: "
<<
double
(orig_size) /
double
(new_size));
21
}
22
}
// namespace openvpn
OPENVPN_LOG
#define OPENVPN_LOG(args)
Definition
logdatetime.hpp:23
openvpn
Definition
ovpncli.cpp:97
openvpn::log_compress
void log_compress(const std::string prefix, const size_t orig_size, const size_t new_size)
Definition
complog.hpp:15
openvpn
common
complog.hpp
Generated by
1.9.8