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

131 Commits

Author SHA1 Message Date
Tristan B. Kildaire
494acab21c Fixed encoding error with GET_USER_PROPS command 2020-10-21 09:02:11 +02:00
Tristan B. Kildaire
7e18e8e6fc My fok marelize 2020-10-20 23:16:50 +02:00
Tristan B. Kildaire
04e12941fb Implemented setproperty 2020-10-20 11:24:19 +02:00
Tristan B. Kildaire
70549b8fdb Implemented setProperty on the server 2020-10-20 10:45:17 +02:00
Tristan B. Kildaire
3be0a028c6 Added mutex to deleteProperty 2020-10-20 10:01:38 +02:00
Tristan B. Kildaire
1694634e3c Added mutex to getProperties 2020-10-20 10:01:13 +02:00
Tristan B. Kildaire
8a7480e356 Added mutex for properties to isProperty and getProperty 2020-10-20 09:57:50 +02:00
Tristan B. Kildaire
3f3bf6071e Initialize properties lock 2020-10-20 09:55:55 +02:00
Tristan B. Kildaire
4af556a8c6 Added server functions for isProperty and getProperty for users 2020-10-20 09:54:42 +02:00
Tristan B. Kildaire
3970a35cd0 Fixed command check
Added missing enums
2020-10-20 09:29:02 +02:00
Tristan B. Kildaire
d0dbb51eef Added isProperty(string) method 2020-10-20 09:26:32 +02:00
Tristan B. Kildaire
94f8922b4f Implemented command GET_USER_PROPS 2020-10-20 09:08:25 +02:00
Tristan B. Kildaire
287d0c6ceb Implemented all property functions. 2020-10-20 08:23:47 +02:00
Tristan B. Kildaire
e39f965b17 Added all needed stub methods for user properties 2020-10-20 08:22:13 +02:00
Tristan B. Kildaire
f20a02635e Added neew properties system. 2020-10-20 08:17:48 +02:00
Tristan B. Kildaire
95d2c2adc9 Added getStatus message 2020-10-20 07:57:27 +02:00
Tristan B. Kildaire
759d1623a1 Added default status 2020-10-20 07:57:21 +02:00
Tristan B. Kildaire
93f4ab34ef Applied last commit's idea to leave messages 2020-10-18 13:40:53 +02:00
Tristan B. Kildaire
68cd53ea8d ChannelJoin notification now returns :<channel>,<username>" instead of just "<username>" 2020-10-18 13:29:18 +02:00
Tristan B. Kildaire
8ee4fdf3b5 Implemented memberinfo command 2020-10-15 14:07:01 +02:00
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
1071d11345 Fixed argument mismatch, disabled requirement for links json key 2020-10-02 17:08:35 +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
f1219170ec Re-enabled broadcasts on leave/join 2020-09-28 19:46:30 +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
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
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
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
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
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
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
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