Overview

Namespaces

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

Classes

  • ConnectionHandler
  • ConnectionHandlerFactory

Interfaces

  • ConnectionHandlerFactoryInterface
  • ConnectionHandlerInterface
  • Overview
  • Namespace
  • Class

Class ConnectionHandler

The default implementation of the ConnectionHandlerInterface.

PHPFastCGI\FastCGIDaemon\ConnectionHandler\ConnectionHandler implements PHPFastCGI\FastCGIDaemon\ConnectionHandler\ConnectionHandlerInterface, Psr\Log\LoggerAwareInterface uses Psr\Log\LoggerAwareTrait (not available)
Namespace: PHPFastCGI\FastCGIDaemon\ConnectionHandler
Located at ConnectionHandler/ConnectionHandler.php
Methods summary
public
# __construct( PHPFastCGI\FastCGIDaemon\KernelInterface $kernel, PHPFastCGI\FastCGIDaemon\Connection\ConnectionInterface $connection, Psr\Log\LoggerInterface $logger = null )

Constructor.

Constructor.

Parameters

$kernel
The kernel to use to handle requests
$connection
The connection to handle
$logger
A logger to use
public
# ready( )

Triggered when the connection the handler was assigned to is ready to be read.

Triggered when the connection the handler was assigned to is ready to be read.

Implementation of

PHPFastCGI\FastCGIDaemon\ConnectionHandler\ConnectionHandlerInterface::ready()
public
# shutdown( )

Gracefully shutdown the connection being handled. Usually triggered following a SIGINT.

Gracefully shutdown the connection being handled. Usually triggered following a SIGINT.

Implementation of

PHPFastCGI\FastCGIDaemon\ConnectionHandler\ConnectionHandlerInterface::shutdown()
public
# close( )

Closes the connection handler and free's associated resources.

Closes the connection handler and free's associated resources.

Implementation of

PHPFastCGI\FastCGIDaemon\ConnectionHandler\ConnectionHandlerInterface::close()
Constants summary
integer READ_LENGTH
# 4096
API documentation generated by ApiGen