mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibCore: Move PosixSocketHelper's read EOF handling to a helper
We'll call this from upcoming LocalSocket methods directly
This commit is contained in:
parent
1e749d023a
commit
0e699743c4
Notes:
sideshowbarker
2024-07-17 01:46:43 +09:00
Author: https://github.com/ADKaster
Commit: 0e699743c4
Pull-request: https://github.com/SerenityOS/serenity/pull/24025
Issue: https://github.com/SerenityOS/serenity/issues/22357
Reviewed-by: https://github.com/trflynn89 ✅
2 changed files with 11 additions and 4 deletions
|
@ -134,6 +134,7 @@ public:
|
|||
ErrorOr<size_t> write(ReadonlyBytes, int flags);
|
||||
|
||||
bool is_eof() const { return !is_open() || m_last_read_was_eof; }
|
||||
void did_reach_eof_on_read();
|
||||
bool is_open() const { return m_fd != -1; }
|
||||
void close();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue