Method |
Description |
|
__construct ( $host, $port, integer $recvTimeoutSec, integer $recvTimeoutUsec = 750000, integer $sendTimeoutSec, integer $sendTimeoutUsec = 100000 ) |
__construct |
|
close ( ) : void |
close the socket |
|
connect ( ) : void |
Connects the socket |
|
createFromStream ( $stream ) : Socket |
Optional method to set the internal stream handle |
|
isResource ( ) : boolean |
checks if the socket is a valid resource |
|
read ( integer $len, boolean $verifyExactLength = false ) : string |
Read from the socket at most $len bytes. |
|
rewind ( ) : void |
Rewind the stream |
|
setMaxWriteAttempts ( integer $number ) |
|
|
setRecvTimeoutSec ( float $recvTimeoutSec ) |
|
|
setRecvTimeoutUsec ( float $recvTimeoutUsec ) |
|
|
setSendTimeoutSec ( float $sendTimeoutSec ) |
|
|
setSendTimeoutUsec ( float $sendTimeoutUsec ) |
|
|
setStream ( mixed $stream ) : void |
Optional method to set the internal stream handle |
|
write ( string $buf ) : integer |
Write to the socket. |
|