Commit Graph

47 Commits

Author SHA1 Message Date
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 9db02f607b Updated to new bmessage API. 2020-06-16 18:19:46 +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 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 bd4846bf61 Code clean up. 2020-05-12 20:41:25 +02:00
Tristan B. Kildaire a3d71c7267 Added some missing comments in response.d 2020-05-07 20:39:41 +02:00
Tristan B. Kildaire 18d35d2374 Added comments. 2020-05-05 09:25:05 +02:00
Tristan B. Kildaire 58f5124f46 Removed old code for built-in handlers in sendHandler. 2020-05-05 09:16:24 +02:00
Tristan B. Kildaire b54817e418 Updated sendClient and sendServer format. 2020-05-04 13:56:18 +02:00
Tristan B. Kildaire cc983dab8f Removed uneeded items. 2020-05-01 22:24:01 +02:00
Tristan B. Kildaire b7bcfd1997 Re-worked built i commands. 2020-05-01 22:23:24 +02:00
Tristan B. Kildaire 312d0bb8e9 Add a field `primitiveAppended` to the message so the handler can get the server reply too. 2020-05-01 22:02:53 +02:00
Tristan B. Kildaire c68df69713 Getting ready for built-in commands. 2020-05-01 17:48:45 +02:00
Tristan B. Kildaire 3c8fd6c547 Added more debug prints. 2020-05-01 12:19:21 +02:00
Tristan B. Kildaire 42664666ce Moved message.d into utils/ 2020-05-01 09:27:17 +02:00
Tristan B. Kildaire b66c2116dc Code clean up and new tests 2020-04-30 18:03:50 +02:00
Tristan B. Kildaire 16d128f7d3 Close server connection after one message received 2020-04-30 17:38:32 +02:00
Tristan B. Kildaire 61e09c7602 Working handler to handler 2020-04-30 15:55:40 +02:00
Tristan B. Kildaire 69a399b928 WIP: Class being initted again 2020-04-30 14:25:12 +02:00
Tristan B. Kildaire 8dafb94a37 WIP: Implementing sendHandler 2020-04-30 13:30:03 +02:00
Tristan B. Kildaire 5d469cbb29 Make 'sendClients' use same response format as 'sendServers' 2020-04-30 10:20:09 +02:00
Tristan B. Kildaire 45d1857601 Server to server working 2020-04-29 18:49:39 +02:00
Tristan B. Kildaire a86dbfe356 WIP: Server-to-server communication 2020-04-29 15:40:55 +02:00
Tristan B. Kildaire d3600d171a WIP: 'admin' field in server.conf. Changed to 'dprint' and message in app.d. WIP: 'sendServers' 2020-04-29 13:55:38 +02:00
Tristan B. Kildaire ff8c10fd5c Constructed response message 2020-04-28 22:41:14 +02:00
Tristan B. Kildaire 49e4317867 WIP: Handler abstraction 2020-04-28 18:19:27 +02:00
Tristan B. Kildaire f802566b76 Bug fix: DOn't let SocketOSException stop whole handler response execution 2020-04-28 17:44:28 +02:00
Tristan B. Kildaire 543a6168ed Added error handling for receiving case and also when the socket has been closed 2020-04-27 22:19:14 +02:00
Tristan B. Kildaire ca9ac3d82d Return 'false' on socket receive error. Added TODOs to implement this check 2020-04-27 17:04:10 +02:00
Tristan B. Kildaire d9feba805f WIP: Message handlers responses being sent 2020-04-27 15:18:53 +02:00
Tristan B. Kildaire cbd6c23db8 Fixed indentation in response.d 2020-04-27 13:00:16 +02:00
Tristan B. Kildaire 829b777c19 Inherit from BesterException 2020-04-26 22:16:07 +02:00
Tristan B. Kildaire b56e989460 Retieve matched users for 'SEND_CLIENTS' command 2020-04-25 22:33:35 +02:00
Tristan B. Kildaire 7b4a3369b4 WIP 2020-04-25 18:58:32 +02:00
Tristan B. Kildaire 1428249568 Set classes that should not be inherited from to final 2020-04-24 19:19:53 +02:00
Tristan B. Kildaire e8d89bf94a Fixed runtime error 2020-04-24 19:12:26 +02:00
Tristan B. Kildaire ac92b9bb76 Fixed compilation error 2020-04-24 19:10:57 +02:00
Tristan B. Kildaire d48ecbc4fe WIP 2020-04-24 18:55:19 +02:00
Tristan B. Kildaire 646662319e Added error checking for message response handling and executor for executing the commands 2020-04-24 18:41:25 +02:00
Tristan B. Kildaire 1cecddc235 Abstracted Handler's message response into its own type 2020-04-24 18:30:02 +02:00
Tristan B. Kildaire 15e241b49a WIP: Message-handler response abstraction 2020-04-24 17:56:57 +02:00