Overview

Namespaces

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

Classes

  • StreamSocketConnection
  • StreamSocketConnectionPool

Interfaces

  • ConnectionInterface
  • ConnectionPoolInterface
  • Overview
  • Namespace
  • Class

Class StreamSocketConnectionPool

The default implementation of the ConnectionPoolInterface using stream sockets.

PHPFastCGI\FastCGIDaemon\Connection\StreamSocketConnectionPool implements PHPFastCGI\FastCGIDaemon\Connection\ConnectionPoolInterface
Namespace: PHPFastCGI\FastCGIDaemon\Connection
Located at Connection/StreamSocketConnectionPool.php
Methods summary
public
# __construct( resource $socket )

Constructor.

Constructor.

Parameters

$socket
The stream socket to accept connections from
public
# operate( PHPFastCGI\FastCGIDaemon\ConnectionHandler\ConnectionHandlerFactoryInterface $connectionHandlerFactory, float $timeoutLoop )

Uses the connection handler factory to instantiate connection handlers when new connections are made to the connection pool. Monitors current connections and triggers them when read operations will not block.

Uses the connection handler factory to instantiate connection handlers when new connections are made to the connection pool. Monitors current connections and triggers them when read operations will not block.

Parameters

$connectionHandlerFactory
The factory used to create connection handlers
$timeoutLoop
The timeout value to use when waiting for activity on incoming connections

Implementation of

PHPFastCGI\FastCGIDaemon\Connection\ConnectionPoolInterface::operate()
public
# shutdown( )

Shutdown the connection pool cleanly. Usually triggered following a SIGINT.

Shutdown the connection pool cleanly. Usually triggered following a SIGINT.

Implementation of

PHPFastCGI\FastCGIDaemon\Connection\ConnectionPoolInterface::shutdown()
API documentation generated by ApiGen