1
0
Fork 0
mirror of https://github.com/besterprotocol/besterd synced 2023-12-13 21:00:32 +01:00
Commit graph

62 commits

Author SHA1 Message Date
55d0293d17 Disabled args field fetch for now as it isn't being used by any built-in command as of yet. 2020-05-02 18:27:09 +02:00
350969af26 Set dispatch status on errors. 2020-05-02 18:23:35 +02:00
dd13d80ed4 Added return message on dispatch failure for bad json. In the case of a missing payload field. 2020-05-02 17:55:04 +02:00
3a5b458da2 Send a status as a response rather than error message. 2020-05-02 16:52:30 +02:00
3cc3ea36e7 Removed debug print. 2020-05-02 16:23:49 +02:00
b7d2fa936c Make sendError public. 2020-05-02 16:19:44 +02:00
de56cca9a7 Added sendError function to make sending error messages to the client easier. 2020-05-02 16:19:30 +02:00
1308eb94ce Changed error format. 2020-05-02 16:06:38 +02:00
c970b92c5f Fixed error response. 2020-05-02 15:29:11 +02:00
9796a005b6 Respond with an error message on authentication failure. 2020-05-02 15:20:50 +02:00
42664666ce Moved message.d into utils/ 2020-05-01 09:27:17 +02:00
e1b0d1fe85 Updates. 2020-05-01 09:13:42 +02:00
7ab34cb188 Cleaned up message.d 2020-05-01 09:09:02 +02:00
af4e79f844 Refactored error handling in message.d 2020-04-30 21:42:35 +02:00
16d128f7d3 Close server connection after one message received 2020-04-30 17:38:32 +02:00
61e09c7602 Working handler to handler 2020-04-30 15:55:40 +02:00
d162c3b513 Added destructor for BesterConnection to close socket 2020-04-29 10:16:39 +02:00
dc6397d5d8 Added todo 2020-04-28 20:01:50 +02:00
c5a14a3374 Closed socket after send-recv with UNIX domain socket to message handler 2020-04-28 19:00:20 +02:00
f731fc18a7 Merge branch 'clean_up' into handler_abstraction 2020-04-28 18:56:47 +02:00
ccb7870aa9 Close UNIX domain socket after handler send-recv 2020-04-28 18:56:18 +02:00
e8c0d37fb6 Abstracted all message handling into the MessageHandler class 2020-04-28 18:28:38 +02:00
49e4317867 WIP: Handler abstraction 2020-04-28 18:19:27 +02:00
f802566b76 Bug fix: DOn't let SocketOSException stop whole handler response execution 2020-04-28 17:44:28 +02:00
76ff645bd0 Fixed bug where an erroneous connection would not disconnect the client 2020-04-28 12:41:08 +02:00
83ae42a42a Integrated new exception handling 2020-04-28 12:35:22 +02:00
0ded7646f2 Added new functions to add in which will throw exceptions 2020-04-27 23:33:58 +02:00
61551ae1b7 😳️ This should not be static, bruh. 2020-04-27 23:31:03 +02:00
22089b69d6 WIP: Exception handling in message.d 2020-04-27 23:19:36 +02:00
543a6168ed Added error handling for receiving case and also when the socket has been closed 2020-04-27 22:19:14 +02:00
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
ca9ac3d82d Return 'false' on socket receive error. Added TODOs to implement this check 2020-04-27 17:04:10 +02:00
d9feba805f WIP: Message handlers responses being sent 2020-04-27 15:18:53 +02:00
ff3badb722 Added todo 2020-04-26 20:35:37 +02:00
dfd2c973b1 Cleaned up 2020-04-26 19:53:59 +02:00
845dcbcc46 Fully implemented use of sendMessage and receiveMessage 2020-04-26 19:19:24 +02:00
73b892a072 Implemented sendMessage and receiveMessage 2020-04-26 19:01:01 +02:00
eb4626fd33 Cleaned up 2020-04-26 18:43:57 +02:00
f2216e05a2 Implemented use of sendMessage and receiveMessage 2020-04-26 18:42:41 +02:00
c69a846903 Removed unused function 2020-04-26 18:31:39 +02:00
30ccb71291 Implemented use of 'sendMessage' 2020-04-26 18:21:55 +02:00
485c332a15 Cleaned up 2020-04-26 18:00:39 +02:00
812809510a Added generic JSON socketReceive function 2020-04-26 17:51:48 +02:00
c810ef3a77 WIP: Message receive function 2020-04-26 17:47:54 +02:00
a2100a4ac9 Added new generic JSON socket-sending function 2020-04-26 17:16:28 +02:00
a246097b82 Re-ordered 2020-04-26 17:01:24 +02:00
2c1306fc47 Fixed bug whereby old length was being used as the array was dirty 2020-04-26 15:49:30 +02:00
2ab3260ada Fixed compile time error 2020-04-26 15:10:48 +02:00
4b8dad093e Re-worked authentication mechanism 2020-04-26 15:01:48 +02:00
9e4eadde4b SHow error message on invalid scope provided 2020-04-26 14:36:04 +02:00