Overview

Namespaces

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

Classes

  • ApplicationFactory
  • CallbackWrapper
  • Daemon
  • DaemonFactory

Interfaces

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

Class DaemonFactory

The default implementation of the DaemonFactoryInterface.

PHPFastCGI\FastCGIDaemon\DaemonFactory implements PHPFastCGI\FastCGIDaemon\DaemonFactoryInterface
Namespace: PHPFastCGI\FastCGIDaemon
Located at DaemonFactory.php
Methods summary
public PHPFastCGI\FastCGIDaemon\DaemonInterface
# createDaemon( PHPFastCGI\FastCGIDaemon\KernelInterface|callable $kernel )

Create a FastCGI daemon listening on FCGI_LISTENSOCK_FILENO.

Create a FastCGI daemon listening on FCGI_LISTENSOCK_FILENO.

Parameters

$kernel
The daemon's kernel

Returns

PHPFastCGI\FastCGIDaemon\DaemonInterface
The FastCGI daemon

Codecoverageignore

Implementation of

PHPFastCGI\FastCGIDaemon\DaemonFactoryInterface::createDaemon()
public PHPFastCGI\FastCGIDaemon\DaemonInterface
# createTcpDaemon( PHPFastCGI\FastCGIDaemon\KernelInterface|callable $kernel, integer $port, string $host = 'localhost' )

Create a FastCGI daemon listening on a given address. The default host is localhost.

Create a FastCGI daemon listening on a given address. The default host is localhost.

Parameters

$kernel
The daemon's kernel
$port
The port to bind to
$host
The host to bind to

Returns

PHPFastCGI\FastCGIDaemon\DaemonInterface
The FastCGI daemon

Codecoverageignore

Implementation of

PHPFastCGI\FastCGIDaemon\DaemonFactoryInterface::createTcpDaemon()
public PHPFastCGI\FastCGIDaemon\DaemonInterface
# createDaemonFromStreamSocket( PHPFastCGI\FastCGIDaemon\KernelInterface|callable $kernel, resource $socket )

Create a FastCGI daemon from a stream socket which is configured for accepting connections.

Create a FastCGI daemon from a stream socket which is configured for accepting connections.

Parameters

$kernel
The daemon's kernel
$socket
The socket to accept connections from

Returns

PHPFastCGI\FastCGIDaemon\DaemonInterface
The FastCGI daemon

Implementation of

PHPFastCGI\FastCGIDaemon\DaemonFactoryInterface::createDaemonFromStreamSocket()
API documentation generated by ApiGen