Commit Graph

376 Commits

Author SHA1 Message Date
Tristan B. Kildaire 0f75841600 Upgraded 2020-07-20 19:45:25 +02:00
Tristan B. Kildaire 5fc42a6ef9 ACTUALLY updated bformat 2020-06-17 08:25:23 +02:00
Tristan B. Kildaire 72139e70c3 Updated bformat. 2020-06-17 08:24:48 +02:00
Tristan B. Kildaire ac56eb7689 Added TODO for further thread safety changes to come. 2020-06-16 18:50:50 +02:00
Tristan B. Kildaire d19b552997 Migrated successfully to new bformat. 2020-06-16 18:46:54 +02:00
Tristan B. Kildaire 261448159f Had a mistake migrating to the new bformat, now migrated almost. 2020-06-16 18:46:26 +02:00
Tristan B. Kildaire c4a4d46264 Upgraded to new bformat v1.0.5 2020-06-16 18:46:07 +02:00
Tristan B. Kildaire c7f701e8f6 Use correct bformat version. 2020-06-16 18:39:50 +02:00
Tristan B. Kildaire b783d98ea7 `addConnection` is now threadsafe. 2020-06-16 18:35:00 +02:00
Tristan B. Kildaire 5c13fa3c77 Using new `addConnection` which aims to be thread safe. 2020-06-16 18:32:17 +02:00
Tristan B. Kildaire 60cd993472 Added stub function `addConnection` to the BesterServer type for thread safe Connection object array appending. 2020-06-16 18:29:42 +02:00
Tristan B. Kildaire aec7144106 Converted missing bmessage `sendMessage` call. 2020-06-16 18:20:45 +02:00
Tristan B. Kildaire 9db02f607b Updated to new bmessage API. 2020-06-16 18:19:46 +02:00
Tristan B. Kildaire c646b4bf20 Updated vibe-d 2020-06-16 18:10:18 +02:00
Tristan B. Kildaire 88af27c3cb Stripepd whitespace from username. 2020-05-15 16:47:18 +02:00
Tristan B. Kildaire 2b54142439 Cleaned up and added TODOs 2020-05-15 16:31:35 +02:00
Tristan B. Kildaire 0b5ca124d6 Use new shutdown and send a fatal message. 2020-05-15 16:06:40 +02:00
Tristan B. Kildaire 71632ec1f3 Added comment.
Remove dunused function.
2020-05-15 15:54:37 +02:00
Tristan B. Kildaire 80b0772fd8 Removed some TODOs 2020-05-15 15:52:33 +02:00
Tristan B. Kildaire 32d35cec71 Added "messageType" field to header that is constructed in SEND_CLIENTS for sending to clients. 2020-05-15 12:50:50 +02:00
Tristan B. Kildaire a22b65f7c4 Renamed "responseType" field to "messageType" field. 2020-05-15 12:49:26 +02:00
Tristan B. Kildaire 615ebc823a Set "responseType" field for status reports. 2020-05-15 12:48:23 +02:00
Tristan B. Kildaire 8d0256d105 Added return as to not expect a payload along with the autnetication. 2020-05-14 16:00:23 +02:00
Tristan B. Kildaire 4e091e2f2d Removed todo 2020-05-14 14:25:46 +02:00
Tristan B. Kildaire 06c406ef86 Added todo. 2020-05-14 14:23:57 +02:00
Tristan B. Kildaire 00c16b68da Send special status report "auth_special" id for authentication. 2020-05-14 14:15:01 +02:00
Tristan B. Kildaire 1ade3365b1 Use shutdown instead. 2020-05-14 14:03:54 +02:00
Tristan B. Kildaire 95577698b8 Added ID forwarding. 2020-05-14 11:22:41 +02:00
Tristan B. Kildaire be2953595d Added status report to SEND_SERVERS 2020-05-14 11:12:58 +02:00
Tristan B. Kildaire ea25aabf26 Send status report after SEND_CLIENTS 2020-05-14 11:12:17 +02:00
Tristan B. Kildaire 2993f74b05 Adding new function to send status reports on errors or sucesses. 2020-05-14 11:08:27 +02:00
Tristan B. Kildaire cc934e5ec8 Fixed test handler. 2020-05-14 10:55:51 +02:00
Tristan B. Kildaire e0e7d5ffd0 Refactored. 2020-05-14 00:48:52 +02:00
Tristan B. Kildaire 89f51e5944 Updated test case to take the `id` field into account. 2020-05-14 00:41:24 +02:00
Tristan B. Kildaire fc33bd0b69 Refactored message dispatch. 2020-05-14 00:39:45 +02:00
Tristan B. Kildaire 955cc6d21d Shutdown on general format error. 2020-05-14 00:36:12 +02:00
Tristan B. Kildaire 9f1e63367c Return false. 2020-05-14 00:27:37 +02:00
Tristan B. Kildaire a9ee569314 Removed unused variable and returned `true`. 2020-05-14 00:24:27 +02:00
Tristan B. Kildaire 4442c62ae7 Misplaced sendErrorReport call. 2020-05-14 00:20:57 +02:00
Tristan B. Kildaire 70df082f9a Added dummy response with new `id` and `status` system. 2020-05-14 00:17:13 +02:00
Tristan B. Kildaire 27ada909d6 Send error reports on errors. 2020-05-14 00:05:04 +02:00
Tristan B. Kildaire 1d7f0b8ac2 Created `sendErrorReport` function. 2020-05-14 00:01:36 +02:00
Tristan B. Kildaire 3e570e8066 Added comment and fixed compilation error. 2020-05-13 23:40:16 +02:00
Tristan B. Kildaire 79cfe50353 Shutdown connecction on fatal protocol error. 2020-05-13 23:11:14 +02:00
Tristan B. Kildaire 007e15caa4 Added todo 2020-05-13 23:02:44 +02:00
Tristan B. Kildaire cc359a14f0 Added `"id"` field requirement to `"payload"` block. 2020-05-13 23:00:24 +02:00
Tristan B. Kildaire d5e3a86842 Cleaned up. 2020-05-12 20:50:26 +02:00
Tristan B. Kildaire bd4846bf61 Code clean up. 2020-05-12 20:41:25 +02:00
Tristan B. Kildaire d19a7809ca wip 2020-05-09 18:04:36 +02:00
Tristan B. Kildaire 23bcda9b3c WP 2020-05-09 16:16:48 +02:00