Commit Graph

376 Commits

Author SHA1 Message Date
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 50293d1d6f Fixed formatting in spec. 2020-04-30 10:49:20 +02:00
Tristan B. Kildaire e58cf142e0 Removed old specification files 2020-04-30 10:41:49 +02:00
Tristan B. Kildaire 9fc71f9b57 Removed old spec 2020-04-30 10:36:05 +02:00
Tristan B. Kildaire 29c10791b4 Updated spec 2020-04-30 10:33:48 +02:00
Tristan B. Kildaire f9b0888c65 Made test backup, WIP: Clean this up 2020-04-30 10:33:24 +02:00
Tristan B. Kildaire 30ae6213c1 Updated spec to show changes just made 2020-04-30 10:22:12 +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 d1cbba4422 Added new tests 2020-04-29 13:26:18 +02:00
Tristan B. Kildaire d162c3b513 Added destructor for BesterConnection to close socket 2020-04-29 10:16:39 +02:00
Tristan B. Kildaire 81698fb77f Added new handler (just an extra) 2020-04-28 23:17:45 +02:00
Tristan B. Kildaire ff8c10fd5c Constructed response message 2020-04-28 22:41:14 +02:00
Tristan B. Kildaire dc6397d5d8 Added todo 2020-04-28 20:01:50 +02:00
Tristan B. Kildaire c5a14a3374 Closed socket after send-recv with UNIX domain socket to message handler 2020-04-28 19:00:20 +02:00
Tristan B. Kildaire f731fc18a7 Merge branch 'clean_up' into handler_abstraction 2020-04-28 18:56:47 +02:00
Tristan B. Kildaire ccb7870aa9 Close UNIX domain socket after handler send-recv 2020-04-28 18:56:18 +02:00
Tristan B. Kildaire e8c0d37fb6 Abstracted all message handling into the MessageHandler class 2020-04-28 18:28:38 +02:00
Tristan B. Kildaire 49e4317867 WIP: Handler abstraction 2020-04-28 18:19:27 +02:00
Tristan B. Kildaire ed1f995b3c Privatised functions that need not be public 2020-04-28 18:05:47 +02:00
Tristan B. Kildaire c12beb8322 Alias 'dprint' to 'debugPrint' for easier typing 2020-04-28 18:03:48 +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 76ff645bd0 Fixed bug where an erroneous connection would not disconnect the client 2020-04-28 12:41:08 +02:00
Tristan B. Kildaire 83ae42a42a Integrated new exception handling 2020-04-28 12:35:22 +02:00
Tristan B. Kildaire 0ded7646f2 Added new functions to add in which will throw exceptions 2020-04-27 23:33:58 +02:00
Tristan B. Kildaire 61551ae1b7 😳️ This should not be static, bruh. 2020-04-27 23:31:03 +02:00
Tristan B. Kildaire 22089b69d6 WIP: Exception handling in message.d 2020-04-27 23:19:36 +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 d2d140b354 Added code to end the client's connection if there was an error reading from the socket 2020-04-27 20:00:25 +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 54f6bc18c2 Test suite now prompts user to enter ausername to authenticate to the server with 2020-04-27 16:34:30 +02:00
Tristan B. Kildaire f139e9f5a1 Bug fixed when getting users list 2020-04-27 16:34:14 +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 4dc2762cb5 Added stub type for base exception types in bester 2020-04-26 21:13:16 +02:00
Tristan B. Kildaire 55ed333088 Removed unused module 2020-04-26 20:42:36 +02:00
Tristan B. Kildaire ff3badb722 Added todo 2020-04-26 20:35:37 +02:00
Tristan B. Kildaire dfd2c973b1 Cleaned up 2020-04-26 19:53:59 +02:00
Tristan B. Kildaire 845dcbcc46 Fully implemented use of sendMessage and receiveMessage 2020-04-26 19:19:24 +02:00
Tristan B. Kildaire 73b892a072 Implemented sendMessage and receiveMessage 2020-04-26 19:01:01 +02:00
Tristan B. Kildaire eb4626fd33 Cleaned up 2020-04-26 18:43:57 +02:00
Tristan B. Kildaire f2216e05a2 Implemented use of sendMessage and receiveMessage 2020-04-26 18:42:41 +02:00
Tristan B. Kildaire c69a846903 Removed unused function 2020-04-26 18:31:39 +02:00
Tristan B. Kildaire 30ccb71291 Implemented use of 'sendMessage' 2020-04-26 18:21:55 +02:00
Tristan B. Kildaire bf7801199b Revert test suite back to normal 2020-04-26 18:21:40 +02:00