Skip to content

Commit

Permalink
v1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sirn-se committed Oct 21, 2023
1 parent 55ef9ad commit 998f5d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ class SocketStream extends Stream {
public function setBlocking(bool $enable): bool; // Change blocking mode
public function setTimeout(int $seconds, int $microseconds = 0): bool; // Set timeout
public function readLine(int $length): ?string // Read a line from stream, up to $length bytes
public function closeRead(): void; // Closes the stream for further reading
public function closeWrite(): void; // Closes the stream for further writing
}
```

Expand Down Expand Up @@ -173,7 +175,7 @@ class StreamFactory implements StreamFactoryInterface {

## StreamException class

The `Phrity\Net\StreamException` is thrown when astream related error occurs.
The `Phrity\Net\StreamException` is thrown when a stream related error occurs.

```php
class StreamException extends RuntimeException {
Expand All @@ -188,6 +190,7 @@ class StreamException extends RuntimeException {

| Version | PHP | |
| --- | --- | --- |
| `1.3` | `^7.4\|^8.0` | Closing read and write separately |
| `1.2` | `^7.4\|^8.0` | Socket client |
| `1.1` | `^7.4\|^8.0` | Stream collection |
| `1.0` | `^7.4\|^8.0` | Initial version |

0 comments on commit 998f5d0

Please sign in to comment.