Commit Graph

357 Commits

Author SHA1 Message Date
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
Tristan B. Kildaire b862ba7270 WIP 2020-05-09 16:14:55 +02:00
Tristan B. Kildaire 4d21754fff Typo fix in comment. 2020-05-09 15:54:42 +02:00
Tristan B. Kildaire 1b2c4cabe9 Added comments to types. 2020-05-09 15:53:25 +02:00
Tristan B. Kildaire 48d58f26b7 Include port in address tring. 2020-05-09 15:48:04 +02:00
Tristan B. Kildaire ef272edc77 Disable redis for now. 2020-05-09 15:25:22 +02:00
Tristan B. Kildaire 9c853b22c3 Added `toString`s for all the listeners. 2020-05-09 15:19:57 +02:00
Tristan B. Kildaire 9f565e9c09 Updated dependancies 2020-05-09 15:19:47 +02:00
Tristan B. Kildaire 115f8f25fd Added listener information to `getServerInfo` informer command. 2020-05-09 14:37:24 +02:00
Tristan B. Kildaire e29bb80e5e Added FIXME 2020-05-09 14:30:39 +02:00
Tristan B. Kildaire 7972eb3235 Updated handler test to send response back to test client. 2020-05-09 11:17:24 +02:00
Tristan B. Kildaire 8f0ddd766a WIP 2020-05-08 15:42:28 +02:00
Tristan B. Kildaire 95de9c25d1 Server now authenticates against its datastore. 2020-05-08 14:17:48 +02:00
Tristan B. Kildaire c300c9995f Redis backend works. 2020-05-08 14:16:56 +02:00
Tristan B. Kildaire e6ddbaac62 Added stub function for new database configuration code. 2020-05-08 13:58:00 +02:00
Tristan B. Kildaire a042dc4a0d Added `authenticate` function.
Fixed compiler error.
2020-05-08 13:43:09 +02:00
Tristan B. Kildaire ab64098b6f Added `createAccount` function. 2020-05-08 13:40:47 +02:00
Tristan B. Kildaire 185b7e86e3 Shutdown the datastore on server shutdown. 2020-05-08 13:32:34 +02:00
Tristan B. Kildaire 0e0be00b85 Added missing import. 2020-05-08 13:30:33 +02:00
Tristan B. Kildaire c31e67dd72 Added datastore to `BesterServer`.
Added redis connection code for a redis-backed datastore type.
2020-05-08 13:29:56 +02:00