From dc5c9fd10aa6ba4d1e5581cc1d5d2f0414b6efcd Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 26 Oct 2024 16:26:34 +0200 Subject: Use dynamic limits for buffers Use arenas where possible to have growable buffers - Use of bufArena in server and client for receiving&sending messages - Use of inputArena in client Also organized code --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 8e45866..816705b 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,8 @@ The idea is the following: - [x] bug: do not allow sending empty message - [x] wrapping messages - [x] bug: when sending message after diconnect (serverfd?) +- [x] Handle disconnection thiin a thread, the best way would be +- [ ] ctrl+z to suspend ## server - [ ] log messages to file (save history) @@ -21,7 +23,7 @@ The idea is the following: - [ ] timeout on recv? ## common -- [ ] handle messages that are too large +- [x] handle messages that are too large - [ ] connect/disconnections messages - [ ] use IP address / domain - [ ] chat history @@ -57,7 +59,6 @@ Notice, that this depends on knowing the text's length before allocating the mem - `Ctrl+U`: Erase input line - `Ctrl+W`: Erase word behind cursor - ## Resources I used for building this - source code I looked at: - https://github.com/git-bruh/matrix-tui -- cgit v1.2.3