Commit Graph

55 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire 324969ee5e WIP: Clean up 2022-01-06 17:50:25 +02:00
Tristan B. Velloza Kildaire 3275240b63 Initialize to zero rather 2022-01-05 22:46:38 +02:00
Tristan B. Velloza Kildaire 3f7012c272 Added assertions (sanity checks) to Session API 2022-01-03 20:51:15 +02:00
Tristan B. Velloza Kildaire dd4da17512 Added lock/unlock functions for the Session type 2022-01-03 20:47:24 +02:00
Tristan B. Velloza Kildaire 4556473696 Added mutex/lock to Session type 2022-01-03 20:47:06 +02:00
Tristan B. Kildaire f14211890d Initialize mutex for global session queue 2022-01-03 18:48:24 +02:00
Tristan B. Kildaire 511e848aeb Store head of Session queue globally 2022-01-03 16:58:40 +02:00
Tristan B. Velloza Kildaire ce099cd36c Thread spawning working, weird I/O bugs occur sometimes though, perhaps some fd things to investigate 2022-01-03 12:19:35 +02:00
Tristan B. Velloza Kildaire 943752d1ec Removed completed TODO 2022-01-01 18:40:44 +02:00
Tristan B. Velloza Kildaire 6024abd620 Removed completed TODO 2022-01-01 18:40:20 +02:00
Tristan B. Velloza Kildaire 39c8c49736 Updated types.h 2022-01-01 18:40:09 +02:00
Tristan B. Velloza Kildaire 14e769741b Removed completed TODOs 2022-01-01 17:38:03 +02:00
Tristan B. Velloza Kildaire a77fa0e361 Updated JSON configuration syntax to reflect new additions 2022-01-01 17:36:03 +02:00
Tristan B. Velloza Kildaire 9da6f9938c Fixed memory safety issue whereby a failed allocation could later cause a page fault 2022-01-01 17:35:50 +02:00
Tristan B. Velloza Kildaire e7ed8fa151 Zero out 'bindAddr', 'endpoint' and 'listenAddr' after allocation 2022-01-01 17:35:05 +02:00
Tristan B. Velloza Kildaire f07593d92b Added 'bindAddr' field to 'Peer' type 2022-01-01 17:34:37 +02:00
Tristan B. Velloza Kildaire 9cce3f6221 Removed todo, added todo for adding remaining JSON checks 2022-01-01 17:30:09 +02:00
Tristan B. Velloza Kildaire 9301f8b501 Set Peer's public key 2022-01-01 17:19:39 +02:00
Tristan B. Velloza Kildaire ab15f50c08 Updated Peer type 2022-01-01 17:19:24 +02:00
Tristan B. Velloza Kildaire 94fe5fba4b Removed FIXME 2022-01-01 17:19:13 +02:00
Tristan B. Velloza Kildaire 0689d0e6f8 Chain sessions toghether 2022-01-01 14:37:24 +02:00
Tristan B. Velloza Kildaire 6eacfb00c3 Added FIXME (TODO for making sure Sessions get chained in the configuration parser) 2022-01-01 12:35:59 +02:00
Tristan B. Velloza Kildaire 383603d455 Removed Adapter queue, Sessions now have their adapters created and attached 2022-01-01 12:29:40 +02:00
Tristan B. Velloza Kildaire 6d3c331e4b Renamed session.h -> types.h, updated file appropriately 2021-12-31 18:40:30 +02:00
Tristan B. Velloza Kildaire cbaf0ba9bf Removed types.h and put it all into session.h 2021-12-31 18:39:23 +02:00
Tristan B. Velloza Kildaire 7e40769e7d Inclusion updates 2021-12-31 13:44:44 +02:00
Tristan B. Velloza Kildaire 7b663ab90b Updated Session type 2021-12-31 13:44:32 +02:00
Tristan B. Velloza Kildaire 6f4030aff6 Extract "listenAddr" from config 2021-12-31 12:48:35 +02:00
Tristan B. Velloza Kildaire 162b53841c Extract 'privateKey' from session declaration 2021-12-31 00:45:49 +02:00
Tristan B. Velloza Kildaire 10f1bfc0de Assure that the 'interface' key is a JSON string value 2021-12-30 19:41:28 +02:00
Tristan B. Velloza Kildaire b4c1f43277 Handle missing 2021-12-30 17:24:47 +02:00
Tristan B. Velloza Kildaire 82d20800d8 Extract interface names from Session objects, also extracts Session objects as implied 2021-12-30 16:47:36 +02:00
Tristan B. Velloza Kildaire dca4625fd9 WIP: Session data structure to be built out of JSON session objects 2021-12-30 15:42:05 +02:00
Tristan B. Velloza Kildaire 7f1fe90a16 Use correct types from stdint.h 2021-12-30 15:41:40 +02:00
Tristan B. Velloza Kildaire a6cef827b5 Final syntax for configuration file 2021-12-30 14:29:46 +02:00
Tristan B. Velloza Kildaire fef2b2567b Removed debug print 2021-12-30 14:29:37 +02:00
Tristan B. Velloza Kildaire 0bcc3b82db Weird bug removed, uint_least8_t didn't work as expected, it stayed 8-bit wide 2021-12-30 13:34:59 +02:00
Tristan B. Velloza Kildaire b8dc021250 Removed TODO 2021-12-30 12:34:57 +02:00
Tristan B. Velloza Kildaire f2f97ba2f4 Added JSON parsing support for the configuration file, complete with error handling and reporting (WIP) 2021-12-30 12:29:51 +02:00
Tristan B. Velloza Kildaire 80014a0a0e Updated comments in config.c 2021-12-29 18:55:47 +02:00
Tristan B. Velloza Kildaire dab6ba8d07 Updated logo source file 2021-12-29 18:55:34 +02:00
Tristan B. Velloza Kildaire 09a11ce007 Added branding 2021-12-29 18:38:18 +02:00
Tristan B. Velloza Kildaire 05c5cc1d18 Only continue reading configuration file when stat() succeeds 2021-12-29 17:26:58 +02:00
Tristan B. Velloza Kildaire cf39df1d3e Config file reading implemented 2021-12-29 17:24:28 +02:00
Tristan B. Velloza Kildaire f6872aff2b WIP: Configuration system 2021-12-29 16:19:35 +02:00
Tristan B. Velloza Kildaire 9b63000e0e Added counter to listDapaters()'s output 2021-12-29 15:59:26 +02:00
Tristan B. Velloza Kildaire fc0298532d Added listAdapters() function 2021-12-29 15:56:29 +02:00
Tristan B. Velloza Kildaire 4e80206385 Implemented addAdapter(Adapter*) 2021-12-29 15:47:58 +02:00
Tristan B. Velloza Kildaire 0e8d983023 Added missing header 2021-12-29 15:05:08 +02:00
Tristan B. Velloza Kildaire d29bc74cec Makefile now pulls remote dependencies 2021-12-29 11:19:09 +02:00