aboutsummaryrefslogtreecommitdiff
path: root/chatty.c
Commit message (Collapse)AuthorAgeFilesLines
* Add limit_y to tb_printf_wrapRaymaekers Luca2024-10-301-15/+40
| | | | Also skip offset messages.
* Refactor server code into functionsRaymaekers Luca2024-10-301-4/+5
| | | | | | - disconnect(): for disconnecting a client and deinitializing it - sendToOthers(): for sending a message to all other clients - initClient(): for initializing a client
* Added SIGSTOP handling for suspending on ctrl-zRaymaekers Luca2024-10-301-0/+7
|
* Added protocolRaymaekers Luca2024-10-301-280/+311
| | | | | | | | | | | | | | | | | | Use a protocol defined in `README.md` and `chatty.h` for sending messages. Another big change is the clientsArena which now stores metadata for the connection such as the author's name. Misc: - Merged arena.h and common.h into chatty.h - removed all the unused code from arena.h as it was not very useful and would not win me any time. - Added compile_flag.txt - Changed formatting - Added more log messages - Added more asserts - Added bool type via enum
* Use dynamic limits for buffersRaymaekers Luca2024-10-261-66/+96
| | | | | | | | 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
* Put v2 code in root folderRaymaekers Luca2024-10-261-0/+490