Network System 0.1.1
High-performance modular networking library for scalable client-server applications
Loading...
Searching...
No Matches
kcenon::network::policy::TlsPolicy Concept Reference

Concept that constrains types to be valid TLS policies. More...

#include <tls_policy.h>

Concept definition

template<typename T>
{ T::enabled } -> std::convertible_to<bool>;
}
Concept that constrains types to be valid TLS policies.
Definition tls_policy.h:88

Detailed Description

Concept that constrains types to be valid TLS policies.

A valid TLS policy must have a static constexpr bool member enabled that indicates whether TLS is active.

Satisfied Types

  • no_tls - Plain-text communication (no TLS)
  • tls_enabled - TLS enabled with configuration

Usage

template<TlsPolicy Policy>
class connection_handler { ... };

Definition at line 88 of file tls_policy.h.