OpenVPN 3 Core Library
Loading...
Searching...
No Matches
asioerr.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_ASIO_ASIOERR_H
13#define OPENVPN_ASIO_ASIOERR_H
14
15#include <string>
16
17#include <openvpn/io/io.hpp> // was: #include <asio/error_code.hpp>
18
19namespace openvpn {
20
21// returns a string describing an i/o error code
22template <typename ErrorCode>
23inline std::string errinfo(ErrorCode err)
24{
25 openvpn_io::error_code e(err, openvpn_io::system_category());
26 return e.message();
27}
28
29} // namespace openvpn
30
31#endif
Support deferred server-side state creation when client connects.
Definition ovpncli.cpp:95
std::string errinfo(ErrorCode err)
Definition asioerr.hpp:23