aboutsummaryrefslogtreecommitdiff
path: root/common.h
Commit message (Collapse)AuthorAgeFilesLines
* Added protocolRaymaekers Luca2024-10-301-51/+0
| | | | | | | | | | | | | | | | | | 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-6/+5
| | | | | | | | 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/+52
|
* Archive code into v1/ directoryRaymaekers Luca2024-10-241-179/+0
| | | | | The code was written too fast and I deemed that it would be better to make a new draft.
* Moved common.c to common.hRaymaekers Luca2024-10-211-1/+131
| | | | | - fixed bug(server.c): `on` not being 32 bytes - cleanup
* Added common code for messagesRaymaekers Luca2024-10-211-0/+8
| | | | | | - add: send_message, receive_message functions - change: use u8, u16, u32, where possible - fix: use PORT in server.c
* Added mvp implementations of the server and client for testingRaymaekers Luca2024-10-201-2/+15
|
* add serialization to file codeRaymaekers Luca2024-10-191-0/+28