Overview

Namespaces

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

Classes

  • StreamSocketConnection
  • StreamSocketConnectionPool

Interfaces

  • ConnectionInterface
  • ConnectionPoolInterface
  • Overview
  • Namespace
  • Class

Interface ConnectionInterface

The connection interface defines a set of methods that abstract operations on incoming connections from the method by which they were accepted.

Direct known implementers

PHPFastCGI\FastCGIDaemon\Connection\StreamSocketConnection
Namespace: PHPFastCGI\FastCGIDaemon\Connection
Located at Connection/ConnectionInterface.php
Methods summary
public string
# read( integer $length )

Read data from the connection.

Read data from the connection.

Parameters

$length
Number of bytes to read

Returns

string
Buffer containing the read data

Throws

PHPFastCGI\FastCGIDaemon\Exception\ConnectionException
On failure
public
# write( string $buffer )

Write data to the connection.

Write data to the connection.

Parameters

$buffer
Buffer containing the data to write

Throws

PHPFastCGI\FastCGIDaemon\Exception\ConnectionException
On failure
public boolean
# isClosed( )

Tests to see if the connection has been closed.

Tests to see if the connection has been closed.

Returns

boolean
True if the connection has been closed, false otherwise
public
# close( )

Closes the connection it from the pool.

Closes the connection it from the pool.

API documentation generated by ApiGen