OpenVPN 3 Core Library
Loading...
Searching...
No Matches
reach.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_APPLECRYPTO_UTIL_REACH_H
13#define OPENVPN_APPLECRYPTO_UTIL_REACH_H
14
15// An interface to various network reachability implementations,
16// primarily for iOS.
17
18namespace openvpn {
20{
27
28 virtual Status reachable() const = 0;
29 virtual bool reachableVia(const std::string &net_type) const = 0;
30 virtual std::string to_string() const = 0;
31 virtual ~ReachabilityInterface() = default;
32};
33} // namespace openvpn
34#endif
virtual bool reachableVia(const std::string &net_type) const =0
virtual ~ReachabilityInterface()=default
virtual std::string to_string() const =0
virtual Status reachable() const =0