LibCore: Move PosixSocketHelper's read EOF handling to a helper

We'll call this from upcoming LocalSocket methods directly
This commit is contained in:
Andrew Kaster 2024-04-17 16:39:57 -06:00 committed by Tim Flynn
commit 0e699743c4
Notes: sideshowbarker 2024-07-17 01:46:43 +09:00
2 changed files with 11 additions and 4 deletions

View file

@ -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();