Commit Graph

50 Commits

Author SHA1 Message Date
Tristan B. Kildaire 9285d52897 Added TODO for `CHAN_PROP` and `SET_PROP` to be implemented. 2020-10-15 11:28:12 +02:00
Tristan B. Kildaire ae64574d3e Implemented checking for `SET_PROP` and `CHAN_PROP` commands 2020-10-15 11:27:25 +02:00
Tristan B. Kildaire 7031d6f538 Cleaned up, added new command enums 2020-10-15 11:26:57 +02:00
Tristan B. Kildaire 1e51b33195 Cleaned up 2020-10-15 11:23:59 +02:00
Tristan B. Kildaire 9c391d2517 Implemented 'status' message. 2020-10-14 23:19:40 +02:00
Tristan B. Kildaire a0d8ea8596 Added two commands TO BE implemented in the near future. 2020-10-14 18:48:23 +02:00
Tristan B. Kildaire af3a36512a Removed uneeded cast 2020-10-05 19:38:01 +02:00
Tristan B. Kildaire 53bbf8710c Zero-extend (not sign) due to implciti integer promotion 2020-10-05 18:01:47 +02:00
Tristan B. Kildaire 6837d290bd Type corrections 2020-10-05 17:59:40 +02:00
Tristan B. Kildaire b115634849 Yay, finally good type safety. EVen going as far ato conditions where the sign extension wouldn't differ the zeor extension, but I"M PEDANTIC AS FUCK 2020-10-05 16:41:40 +02:00
Tristan B. Kildaire cc4de82818 Freeze 2020-10-05 15:59:08 +02:00
Tristan B. Kildaire ef90f1ba13 daemon now uses configuration file for network parameters, also added motd command and serverinfo command (not yet implemented) 2020-10-02 16:11:27 +02:00
Tristan B. Kildaire bad168e400 Added 'memberlist' command 2020-09-30 10:15:32 +02:00
Tristan B. Kildaire 87eb1f02e7 Implemented `memberlist` command 2020-09-29 23:28:58 +02:00
Tristan B. Kildaire 5ef44b3d9b Added 'membercount' command 2020-09-29 14:29:46 +02:00
Tristan B. Kildaire 7424875676 Direct messages implemented 2020-09-28 22:00:31 +02:00
Tristan B. Kildaire ff1aba9dc1 Cleaned up 2020-09-28 20:42:40 +02:00
Tristan B. Kildaire b0f30acb5b Code cleanup 2020-09-28 19:46:03 +02:00
Tristan B. Kildaire e30987546b Added debug prints for now solved bug (tristanable concurrency fix, early request), also simplified channel joins to be mutex atomic in that all stuff must first complete 2020-09-28 19:23:04 +02:00
Tristan B. Kildaire ea34d7b4a2 Broadcast leave message to channel the client left 2020-09-28 13:47:27 +02:00
Tristan B. Kildaire 98700f3067 Fixed compilation error 2020-09-28 12:50:40 +02:00
Tristan B. Kildaire 5983f090e3 Leave all channels you were a member of on socket read error (caused by disconnect) 2020-09-28 11:42:14 +02:00
Tristan B. Kildaire e12688c38a Removed debug prints 2020-09-28 10:21:12 +02:00
Tristan B. Kildaire a5f8596062 Fixed protocol type number 5 2020-09-28 10:12:13 +02:00
Tristan B. Kildaire aa41a13aed Refactored bool 'status' after user/channel send 2020-09-27 19:50:39 +02:00
Tristan B. Kildaire e07f456848 Refactored 2020-09-27 19:39:48 +02:00
Tristan B. Kildaire d4384c439e Added function to get list of connections, added sendUserMessage function (WIP) to send a message to a given user 2020-09-27 18:31:34 +02:00
Tristan B. Kildaire 71ec17140f Refactored code to increase re-use 2020-09-26 12:24:04 +02:00
Tristan B. Kildaire e4c3f72f3a Cleanup 2020-09-25 19:41:30 +02:00
Tristan B. Kildaire 2c6641d88c Cleanup 2020-09-25 19:33:37 +02:00
Tristan B. Kildaire b81b7a37cd On unknown command, return byte 2 2020-09-25 19:30:45 +02:00
Tristan B. Kildaire 4394dc9ae2 Fixed mutex not being unlocked, only the O.G locker could continue resursively lokcing it 2020-09-25 12:53:34 +02:00
Tristan B. Kildaire bf74c74891 Fixed bug whereby newlu created channels were not added to the global channel list 2020-09-25 09:25:37 +02:00
Tristan B. Kildaire d18e6f4944 Fixed bug whereby DConnection thread would crash due to incorrect slicing indices 2020-09-25 01:08:28 +02:00
Tristan B. Kildaire 6815c51784 Fixed bug whereby a failed read would cause a null pointer deref in tristanable as the data array would be empty and .ptr is being used so bounds checking code would not apply 2020-09-24 19:11:20 +02:00
Tristan B. Kildaire 9236b54515 Added code to send a message to a channel for the 'msg' command 2020-09-24 15:01:23 +02:00
Tristan B. Kildaire 3f2e308263 Now 'part' and 'join' commands require connection type to be CLIENT 2020-09-24 14:36:32 +02:00
Tristan B. Kildaire 26f24f12c8 On 'link' and 'auth' commands set the respective connection types to SERVER and CLIENT 2020-09-24 13:54:01 +02:00
Tristan B. Kildaire 59d4dd1f25 Added functionality to send message to everyone in a channel 2020-09-24 13:28:09 +02:00
Tristan B. Kildaire 7caf0aa22f Implemented 'list' command 2020-09-24 12:32:00 +02:00
Tristan B. Kildaire 9409cdf507 Added 'part' command 2020-09-23 23:57:45 +02:00
Tristan 🅱. Kildaire 736304ed94 Fixed: command requires an authenticated connection 2020-09-23 21:53:25 +02:00
Tristan 🅱. Kildaire e2b0ec0846 Fixed toString 2020-09-23 21:40:22 +02:00
Tristan 🅱. Kildaire 7e1e361c21 Added 'join' command 2020-09-23 18:52:11 +02:00
Tristan 🅱. Kildaire fdea191041 Added writeSocket, initialized locks 2020-09-23 13:14:37 +02:00
Tristan 🅱. Kildaire e10a7d5b3e Save the tag for future use when sending replies 2020-09-23 11:20:09 +02:00
Tristan 🅱. Kildaire e36103c153 Updated auth code 2020-09-23 10:57:52 +02:00
Tristan 🅱. Kildaire e674538415 Initial command processing code added, working on authentication for clients 2020-09-23 10:52:33 +02:00
Tristan 🅱. Kildaire 8890cd3e79 Updated dependancies 2020-09-23 10:33:10 +02:00
Tristan 🅱. Kildaire 9ad7a4b313 Initial code 2020-09-23 09:37:18 +02:00