Interface ConnectionInterface
The connection interface defines a set of methods that abstract operations
on incoming connections from the method by which they were accepted.
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
|
public
|
#
write( string $buffer )
Write data to the connection.
Write data to the connection.
Parameters
- $buffer
- Buffer containing the data to write
Throws
|
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.
|