Method |
Description |
|
__construct ( string $host = 'localhost', integer $port = 9090, boolean $persist = FALSE, string $debugHandler = null ) |
Socket constructor |
|
close ( ) |
Closes the socket. |
|
flush ( ) |
Flush output to the socket. |
|
getHost ( ) : string |
Get the host that this socket is connected to |
|
getPort ( ) : integer |
Get the remote port that this socket is connected to |
|
isOpen ( ) : boolean |
Tests whether this is open |
|
open ( ) |
Connects the socket. |
|
read ( integer $len ) : string |
Read from the socket |
|
readAll ( integer $len ) : string |
Uses stream get contents to do the reading |
|
setDebug ( boolean $debug ) |
Sets debugging output on or off |
|
setRecvTimeout ( integer $timeout ) |
Sets the receive timeout. |
|
setSendTimeout ( integer $timeout ) |
Sets the send timeout. |
|
write ( string $buf ) |
Write to the socket. |
|