Property | Type | Description | |
---|---|---|---|
$_content | string | Content of the stream | |
$_timeout | integer | Connection timeout value. |
Method | Description | |
---|---|---|
__construct ( array $config = [] ) : void | Constructor. | |
close ( ) : boolean | Closes the socket connection. | |
encoding ( string $charset = null ) : boolean | Sets the encoding of the socket connection. Does not apply to this implementation. | |
eof ( ) : boolean | End of file test for this socket connection. Does not apply to this implementation. | |
open ( array $options = [] ) : mixed | Opens the socket and sets its timeout value. | |
read ( ) : boolean | string | Reads from the socket. Does not apply to this implementation. | |
timeout ( integer $time = null ) : booelan | Sets the timeout on the socket *connection*. | |
write ( string $data = null ) : boolean | Writes to the socket. |
public __construct ( array $config = [] ) : void | ||
$config | array | Available configuration options are: - `'mode'` _string_ - `'message'` _object_ |
return | void |