Boost.Corosio

    • Introduction
    • Quick Start
    • Networking Tutorial
      • What Happens When You Connect
      • Addressing Machines on the Internet
      • Turning Names into Addresses
      • URLs and Resource Identification
      • Clients, Servers, and Ports
      • IP: Moving Packets Across Networks
      • UDP: Fast, Simple, Unreliable
      • TCP: Reliable Byte Streams
      • Opening and Closing TCP Connections
      • How TCP Moves Your Data
      • When Packets Go Missing
      • Making TCP Fast
    • Tutorials
      • Echo Server Tutorial
      • HTTP Client Tutorial
      • DNS Lookup Tutorial
      • TLS Context Configuration
      • Hash Server
      • Reconnect with Backoff
    • Guide
      • TCP/IP Networking
      • Concurrent Programming
      • I/O Context
        • Configuration
      • Lifetime and Teardown
      • Sockets
      • Acceptors
      • Endpoints
      • Composed Operations
      • Delays and Timeouts
      • Signal Handling
      • Name Resolution
      • TCP Server
      • TLS Encryption
      • Error Handling
      • Buffer Sequences
      • File I/O
      • Unix Domain Sockets
      • UDP Sockets
      • Readiness Wait
      • Native Descriptors and Handles
    • Testing
      • Mock Sockets
      • Socket Pairs
      • Testing Patterns
    • Benchmarks
      • Linux
      • Windows
      • macOS
    • Glossary
    • Reference
  • boost::corosio::tls_role
arrow_upward

boost::corosio::tls_role

TLS handshake role.

Synopsis

Declared in <boost/corosio/tls_stream.hpp>

enum class tls_role : int;

Description

Specifies whether to perform the TLS handshake as a client or server.

Members

Name

Description

client

Perform handshake as the connecting client.

server

Perform handshake as the accepting server.

See Also

tls_stream::handshake

Created with MrDocs