SocketOutputStream Class Reference
[Various accompanying utilities]

Inheritance diagram for SocketOutputStream:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct (Socket $socket)
 write ($buffer)
 
Returns:
SocketOutputStream


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


Detailed Description

Definition at line 16 of file SocketOutputStream.class.php.


Constructor & Destructor Documentation

SocketOutputStream::__construct ( Socket socket  ) 

Definition at line 31 of file SocketOutputStream.class.php.


Member Function Documentation

SocketOutputStream::write ( buffer  ) 

Returns:
SocketOutputStream

Reimplemented from OutputStream.

Definition at line 39 of file SocketOutputStream.class.php.


Member Data Documentation

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.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:29 2007 for onPHP by  doxygen 1.5.4