Overview

Namespaces

  • PHPFastCGI
    • FastCGIDaemon
      • Command
      • Connection
      • ConnectionHandler
      • Exception
      • Http

Classes

  • ApplicationFactory
  • CallbackWrapper
  • Daemon
  • DaemonFactory

Interfaces

  • ApplicationFactoryInterface
  • DaemonFactoryInterface
  • DaemonInterface
  • KernelInterface
  • Overview
  • Namespace
  • Class

Class Daemon

The standard implementation of the DaemonInterface is constructed from a connection pool and a factory class to generate connection handlers.

PHPFastCGI\FastCGIDaemon\Daemon implements PHPFastCGI\FastCGIDaemon\DaemonInterface, Psr\Log\LoggerAwareInterface uses Psr\Log\LoggerAwareTrait (not available)
Namespace: PHPFastCGI\FastCGIDaemon
Located at Daemon.php
Methods summary
public
# __construct( PHPFastCGI\FastCGIDaemon\Connection\ConnectionPoolInterface $connectionPool, PHPFastCGI\FastCGIDaemon\ConnectionHandler\ConnectionHandlerFactoryInterface $connectionHandlerFactory, Psr\Log\LoggerInterface $logger = null )

Constructor.

Constructor.

Parameters

$connectionPool
The connection pool to accept connections from
$connectionHandlerFactory
A factory class for producing connection handlers
$logger
A logger to use
public
# run( )

Run the daemon.

Run the daemon.

Throws

Exception
On fatal error

Implementation of

PHPFastCGI\FastCGIDaemon\DaemonInterface::run()
Constants inherited from PHPFastCGI\FastCGIDaemon\DaemonInterface
FCGI_ABORT_REQUEST, FCGI_AUTHORIZER, FCGI_BEGIN_REQUEST, FCGI_CANT_MPX_CONN, FCGI_DATA, FCGI_END_REQUEST, FCGI_FILTER, FCGI_GET_VALUES, FCGI_KEEP_CONNECTION, FCGI_LISTENSOCK_FILENO, FCGI_OVERLOADED, FCGI_PARAMS, FCGI_REQUEST_COMPLETE, FCGI_RESPONDER, FCGI_STDERR, FCGI_STDIN, FCGI_STDOUT, FCGI_UNKNOWN_ROLE, FCGI_VERSION_1
API documentation generated by ApiGen