aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md48
1 files changed, 31 insertions, 17 deletions
diff --git a/README.md b/README.md
index d20f670..28d96a2 100644
--- a/README.md
+++ b/README.md
@@ -1,30 +1,31 @@
# Chatty
-- use memory arena's to manage memory
-- spec for the stream protocol
-
-# Server
The idea is the following:
- tcp server that you can send messages to
-- encrypted communication
- history upon connecting
- date of messages sent
-- author
-- fingeprint as ID for authorship
+- authentication
+- encrypted communication (tls?)
- client for reading the messages and sending them at the same time
+# Common
+- use memory arena's to manage memory
+- manage memory for what if it will not fit
+ - for just do nothing when the limit is reached
+
+# Server
- min height & width
- wrapping input
-- max y for new messages and make them scroll
-- check resize event
-- asynchronously receive/send a message
-- fix receiving messages with arbitrary text length
-
-## TODO: send message to all other clients
-- implement different rooms
-- implement history
- - [ ] fix server copying the bytes correctly
-- implement tls
+- [ ] history
+- [x] max y for new messages and make them scroll
+- [x] check resize event
+- [x] asynchronously receive/send a message
+- [x] send message to all other clients
+- [x] fix receiving messages with arbitrary text length
+- [x] bug: server copying the bytes correctly
+- rooms
+- encryption
+- authentication
# Client
- bug: when having multiple messages and resizing a lot, the output will be in shambles
@@ -37,3 +38,16 @@ The idea is the following:
# Questions
- will two consecutive sends be read in one recv
- can you recv a message in two messages
+
+# Message protocol
+Version 1
+1 version byte
+4 length bytes
+12 message_author bytes
+- 11 chars + \0
+9 timestamp bytes
+- 8chars + \0
+x text bytes
+- x bytes + \0
+
+The variable text bytes can be calculated by substracting the author and timestamp from the length