Public Member Functions | |
__construct (Socket $socket) | |
write ($buffer) | |
| |
Public Attributes | |
const | WRITE_ATTEMPTS = 15 |
NOTE: if socket timeout is 1 second, we can block here over abt 15 seconds. | |
Private Attributes | |
$socket = null |
Definition at line 16 of file SocketOutputStream.class.php.
SocketOutputStream::__construct | ( | Socket $ | socket | ) |
Definition at line 31 of file SocketOutputStream.class.php.
SocketOutputStream::write | ( | $ | buffer | ) |
Reimplemented from OutputStream.
Definition at line 39 of file SocketOutputStream.class.php.
const SocketOutputStream::WRITE_ATTEMPTS = 15 |
NOTE: if socket timeout is 1 second, we can block here over abt 15 seconds.
See conventions of OutputStream.
You must set reliable timeout for socket operations if you want to avoid fatal error on max_execution_time and you must make sure the buffer is not too large to send it at once to your physical channel.
Definition at line 27 of file SocketOutputStream.class.php.
SocketOutputStream::$socket = null [private] |
Definition at line 29 of file SocketOutputStream.class.php.