Overview

Namespaces

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

Classes

  • PHPFastCGI\FastCGIDaemon\ApplicationFactory
  • PHPFastCGI\FastCGIDaemon\CallbackWrapper
  • PHPFastCGI\FastCGIDaemon\Command\DaemonRunCommand
  • PHPFastCGI\FastCGIDaemon\Connection\StreamSocketConnection
  • PHPFastCGI\FastCGIDaemon\Connection\StreamSocketConnectionPool
  • PHPFastCGI\FastCGIDaemon\ConnectionHandler\ConnectionHandler
  • PHPFastCGI\FastCGIDaemon\ConnectionHandler\ConnectionHandlerFactory
  • PHPFastCGI\FastCGIDaemon\Daemon
  • PHPFastCGI\FastCGIDaemon\DaemonFactory
  • PHPFastCGI\FastCGIDaemon\Http\Request

Interfaces

  • PHPFastCGI\FastCGIDaemon\ApplicationFactoryInterface
  • PHPFastCGI\FastCGIDaemon\Connection\ConnectionInterface
  • PHPFastCGI\FastCGIDaemon\Connection\ConnectionPoolInterface
  • PHPFastCGI\FastCGIDaemon\ConnectionHandler\ConnectionHandlerFactoryInterface
  • PHPFastCGI\FastCGIDaemon\ConnectionHandler\ConnectionHandlerInterface
  • PHPFastCGI\FastCGIDaemon\DaemonFactoryInterface
  • PHPFastCGI\FastCGIDaemon\DaemonInterface
  • PHPFastCGI\FastCGIDaemon\Http\RequestInterface
  • PHPFastCGI\FastCGIDaemon\KernelInterface

Exceptions

  • PHPFastCGI\FastCGIDaemon\Exception\ConnectionException
  • PHPFastCGI\FastCGIDaemon\Exception\DaemonException
  • PHPFastCGI\FastCGIDaemon\Exception\ProtocolException
  • PHPFastCGI\FastCGIDaemon\Exception\ShutdownException
  • Overview
  • Namespace
  • Class
 1: <?php
 2: 
 3: namespace PHPFastCGI\FastCGIDaemon;
 4: 
 5: /**
 6:  * The DaemonInterface contains the FCGI constants and defines a single blocking
 7:  * method to run the daemon.
 8:  */
 9: interface DaemonInterface
10: {
11:     // Socket descriptor
12:     const FCGI_LISTENSOCK_FILENO = 0;
13: 
14:     // Versions
15:     const FCGI_VERSION_1         = 1;
16: 
17:     // Records
18:     const FCGI_BEGIN_REQUEST     = 1;
19:     const FCGI_ABORT_REQUEST     = 2;
20:     const FCGI_END_REQUEST       = 3;
21:     const FCGI_PARAMS            = 4;
22:     const FCGI_STDIN             = 5;
23:     const FCGI_STDOUT            = 6;
24:     const FCGI_STDERR            = 7;
25:     const FCGI_DATA              = 8;
26:     const FCGI_GET_VALUES        = 9;
27: 
28:     // Roles
29:     const FCGI_RESPONDER         = 1;
30:     const FCGI_AUTHORIZER        = 2;
31:     const FCGI_FILTER            = 3;
32: 
33:     // Flags
34:     const FCGI_KEEP_CONNECTION   = 1;
35: 
36:     // Statuses
37:     const FCGI_REQUEST_COMPLETE  = 0;
38:     const FCGI_CANT_MPX_CONN     = 1;
39:     const FCGI_OVERLOADED        = 2;
40:     const FCGI_UNKNOWN_ROLE      = 3;
41: 
42:     /**
43:      * Run the daemon.
44:      *
45:      * This process may return if, for example, a SIGINT is received.
46:      *
47:      * @throws \Exception On fatal error
48:      */
49:     public function run();
50: }
51: 
API documentation generated by ApiGen