boost::corosio::tcp_server::worker_base

Abstract base class for connection handlers.

Synopsis

class worker_base;

Description

Derive from this class to implement custom connection handling. Each worker owns a socket and is reused across multiple connections to avoid per‐connection allocation.

Member Functions

Name

Description

~worker_base [destructor] [virtual]

Destroy the worker.

run [virtual]

Handle an accepted connection.

socket [virtual]

Return the socket used for connections.

Friends

Name Description

boost::corosio::tcp_server

TCP server with pooled workers.

See Also

tcp_server, launcher

Created with MrDocs