join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::Tls Class Reference

TLS protocol class (TLS over TCP). More...

#include <tls_protocol.hpp>

Public Types

using Transport = Tcp
 
using Endpoint = typename Transport::Endpoint
 
using Socket = BasicTlsWrapper<Tls>
 
using Stream = BasicTlsStream<Tls>
 

Public Member Functions

constexpr Tls (int family=AF_INET) noexcept
 create the tls protocol instance.
 
constexpr int family () const noexcept
 get the protocol IP address family.
 

Static Public Member Functions

static Tls & v4 () noexcept
 get protocol suitable for IPv4 address family.
 
static Tls & v6 () noexcept
 get protocol suitable for IPv6 address family.
 

Detailed Description

TLS protocol class (TLS over TCP).

Member Typedef Documentation

◆ Endpoint

◆ Socket

◆ Stream

◆ Transport

Constructor & Destructor Documentation

◆ Tls()

join::Tls::Tls ( int family = AF_INET)
inlineexplicitconstexprnoexcept

create the tls protocol instance.

Parameters
familyIP address family.

Member Function Documentation

◆ family()

int join::Tls::family ( ) const
inlineconstexprnoexcept

get the protocol IP address family.

Returns
the protocol IP address family.

◆ v4()

static Tls & join::Tls::v4 ( )
inlinestaticnoexcept

get protocol suitable for IPv4 address family.

Returns
an IPv4 address family suitable protocol.

◆ v6()

static Tls & join::Tls::v6 ( )
inlinestaticnoexcept

get protocol suitable for IPv6 address family.

Returns
an IPv6 address family suitable protocol.

The documentation for this class was generated from the following file: