Overview

Namespaces

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

Classes

  • ApplicationFactory
  • CallbackWrapper
  • Daemon
  • DaemonFactory

Interfaces

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

Interface DaemonFactoryInterface

Objects that implement the DaemonFactoryInterface can be used to create FastCGI daemons that listen on FCGI_LISTENSOCK_FILENO, a configured stream socket resource or a TCP host and port.

Direct known implementers

PHPFastCGI\FastCGIDaemon\DaemonFactory
Namespace: PHPFastCGI\FastCGIDaemon
Located at DaemonFactoryInterface.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
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
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
API documentation generated by ApiGen