1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:17:35 +00:00

LibGemini: Propagate errors in Job::read_line and Job::receive

This patch removes a FIXME
This commit is contained in:
Arda Cinar 2023-01-13 20:27:14 +03:00 committed by Andreas Kling
parent f883dc3eb0
commit 083802d41a
2 changed files with 33 additions and 20 deletions

View file

@ -37,9 +37,9 @@ protected:
void flush_received_buffers();
void register_on_ready_to_read(Function<void()>);
bool can_read_line() const;
DeprecatedString read_line(size_t);
ErrorOr<String> read_line(size_t);
bool can_read() const;
ByteBuffer receive(size_t);
ErrorOr<ByteBuffer> receive(size_t);
bool write(ReadonlyBytes);
enum class State {