Adaptyst
A comprehensive and architecture-agnostic performance analysis tool
Loading...
Searching...
No Matches
adaptyst::Acceptor::Factory Class Referenceabstract

#include <socket.hpp>

Inheritance diagram for adaptyst::Acceptor::Factory:
adaptyst::TCPAcceptor::Factory

Public Member Functions

virtual std::unique_ptr< Acceptormake_acceptor (int max_accepted)=0
 
virtual std::string get_type ()=0
 

Detailed Description

An Acceptor factory.

Member Function Documentation

◆ get_type()

virtual std::string adaptyst::Acceptor::Factory::get_type ( )
pure virtual

Gets the string describing the connection type of the acceptor (e.g. TCP).

Implemented in adaptyst::TCPAcceptor::Factory.

◆ make_acceptor()

virtual std::unique_ptr< Acceptor > adaptyst::Acceptor::Factory::make_acceptor ( int max_accepted)
pure virtual

Makes a new Acceptor-derived object.

Parameters
max_acceptedA maximum number of connections that the acceptor can accept during its lifetime. Use UNLIMITED_ACCEPTED for no limit.

Implemented in adaptyst::TCPAcceptor::Factory.


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