1
0
mirror of https://github.com/deavminet/dnetd synced 2024-09-21 17:53:39 +02:00
Commit Graph

156 Commits

Author SHA1 Message Date
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
c0ea99e797 Upgraded dependancies 2020-09-28 19:22:32 +02:00
Tristan B. Kildaire
cc3b01f975 Updated protocol 2020-09-28 13:58:29 +02:00
Tristan B. Kildaire
1b1827738c Added 'join' broadcast to channel on user join channel 2020-09-28 13:58:18 +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
89f9b7cc41 Cleanup 2020-09-28 12:54:05 +02:00
Tristan B. Kildaire
98700f3067 Fixed compilation error 2020-09-28 12:50:40 +02:00
Tristan B. Kildaire
c7fd5a6d30 Migrated connectionQueue addition code to addConnection() 2020-09-28 11:56:59 +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
16b4ad8b40 Updated protocol 2020-09-27 18:27:34 +02:00
Tristan B. Kildaire
a1017c0a75 Updated protocol 2020-09-27 16:58:44 +02:00
Tristan B. Kildaire
2b94a85e2c Added 'getMemberCount()' to DChannel 2020-09-26 15:05:52 +02:00
Tristan B. Kildaire
71ec17140f Refactored code to increase re-use 2020-09-26 12:24:04 +02:00
Tristan B. Kildaire
fb5cd4f045 Updated protocol 2020-09-25 22:15:58 +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
a5a518f016 Updated protocol 2020-09-25 19:32:06 +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
723d44aa1f Fixed code whereby mutex would never be unlocked if channel was found 2020-09-25 10:21:58 +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
3716a6c583 Updated dependancies 2020-09-24 20:59:03 +02:00
Tristan B. Kildaire
e8e9f5ede0 Updated dependancies 2020-09-24 20:53:23 +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
95978f8637 Updated protocol 2020-09-24 13:28:17 +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
af167f47e3 Updated protocol 2020-09-24 12:31:53 +02:00
Tristan B. Kildaire
a606b19742 Implemented DChannel.leave(this, DConnection) 2020-09-24 00:28:15 +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
c031db0ca2 Set bind details, address type, sock flow type and protocol typep 2020-09-23 21:49:56 +02:00
Tristan 🅱. Kildaire
e2b0ec0846 Fixed toString 2020-09-23 21:40:22 +02:00
Tristan 🅱. Kildaire
41b84fa2a1 Fixed toString 2020-09-23 19:39:16 +02:00
Tristan 🅱. Kildaire
c55a9b9419 Added mutexes to 'join' command, added toString to DChannel 2020-09-23 19:12:12 +02:00
Tristan 🅱. Kildaire
7e1e361c21 Added 'join' command 2020-09-23 18:52:11 +02:00
Tristan 🅱. Kildaire
78a571ae67 Updated protocol 2020-09-23 13:14:55 +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