Boost.Corosio

    • Introduction
    • Quick Start
    • Tutorials
      • Echo Server
      • HTTP Client
      • DNS Lookup
      • TLS Context Configuration
    • Guide
      • TCP/IP Networking
      • Concurrent Programming
      • I/O Context
      • Sockets
      • Acceptors
      • Endpoints
      • Composed Operations
      • Timers
      • Signal Handling
      • Name Resolution
      • TCP Server
      • TLS Encryption
      • Error Handling
      • Buffer Sequences
    • Concepts
      • Design Rationale
      • Affine Awaitables
    • Testing
      • Mock Sockets
    • Reference
    • Glossary
  • boost::corosio::tcp_server::worker_base::run
arrow_upward

boost::corosio::tcp_server::worker_base::run

Handle an accepted connection.

Synopsis

Declared in <boost/corosio/tcp_server.hpp>

virtual
void
run(launcher launch) = 0;

Description

Called when this worker is dispatched to handle a new connection. The implementation must invoke the launcher exactly once to start the handling coroutine.

Parameters

Name Description

launch

Handle to launch the connection coroutine.

Created with MrDocs