108 Commits

Author SHA1 Message Date
6970a65841
fixed client formatting again 2024-01-27 18:21:50 +01:00
135c3bd088
added username to connection_list node 2024-01-27 18:07:48 +01:00
27facd5abd
fixed client formatting after username input 2024-01-27 17:55:20 +01:00
483ffa178d
server asking client for username 2024-01-27 17:47:05 +01:00
7042e3c971
catching WHY2_CHAT_CODE_INVALID_USERNAME and WHY2_CHAT_CODE_PICK_USERNAME as client 2024-01-27 17:46:45 +01:00
de449bd88a
created check_username function
this checks for characters that are not a-Z or 0-9
2024-01-27 17:44:39 +01:00
905c2004db
simplified server listening loop exit 2024-01-27 17:43:59 +01:00
d43882b38f
removed old useless testing code 2024-01-27 16:09:33 +01:00
8f9aaaba36
removed unused code 2024-01-27 15:55:41 +01:00
885aba79ab
fixed formatting on invalid command 2024-01-27 15:36:09 +01:00
7e35adfbb5
moved reading stuff from why2_communicate_thread to read_user function
chances this will break already working code is like 98.3% so yeah... Not 100% tho
2024-01-27 14:57:19 +01:00
7d37daa32d
preventing server from crashing on client crash 2024-01-24 18:29:02 +01:00
db1b1f8b22
removed fixed todo 2024-01-24 13:28:09 +01:00
492563ee40
renamed why2_config_read to why2_toml_read
idk why i didnt do this at first
2024-01-24 12:18:12 +01:00
8f3a45f3ef
implemented why2_config_read in chat-misc 2024-01-24 12:16:15 +01:00
ddbe899071
added message thread cleanup for server
also swaped the function names cause I am so smart
2024-01-21 13:44:31 +01:00
5fdd267907
fixed why2_clean_threads segfault client 2024-01-20 20:13:58 +01:00
7ffb9b1d9c
fixed client segfault on ssqc 2024-01-20 15:48:34 +01:00
7c9e2211a5
implemented yml config in chat-misc 2023-08-27 12:19:46 +02:00
088ff17b1d
implemented WHY2_CHAT_SERVER_USERNAME macro 2023-08-27 11:56:23 +02:00
92e6632fbc
removed completed TODOs 2023-05-02 19:11:08 +02:00
884efa1a92
prepared WHY2_CHAT_CODEs handler 2023-05-02 19:08:43 +02:00
037521b871
sending WHY2_CHAT_CODE_PICK_USERNAME signal to client at connect 2023-05-02 18:55:21 +02:00
68a484cae1
fixed why2_send_socket's text_copy allocation size 2023-04-20 21:44:46 +02:00
1af6cf45a1
optimalyzed send_to_all loop 2023-04-20 09:49:16 +02:00
41291fd345
removed server received messages 2023-04-20 09:45:39 +02:00
9630da569f
added missing return to why2_accept_thread 2023-04-20 09:42:20 +02:00
2d095daef2
added server connection message 2023-04-20 09:28:39 +02:00
0bfeb17755
implemented why2-llist in chat-misc's connection list
sort of
2023-04-19 14:33:39 +02:00
83c173e22a
fixed stop_oldest_thread always working issue
no fucking way
2023-04-19 12:15:10 +02:00
fda282f491
removed inappropriate debug prints
pls don't view the changes for love of god
2023-04-19 12:00:53 +02:00
12a1dfda52
added same address todo 2023-04-19 11:20:12 +02:00
2af91e5aea
implemented double pointers in stop_oldest_thread 2023-04-19 11:09:26 +02:00
b19a9deee7
kind of implemented llist in chat-misc
DO NOT USE THIS COMMIT, I USE IT JUST FOR SYNCING CODE BETWEEN DEVICES, IT IS UNSTABLE AS FUCK; thx <3
2023-04-18 21:10:42 +02:00
3ca7299086
passing double pointer into waiting_list 2023-04-18 21:09:12 +02:00
4fc6d36262
created local find_request function
it is basically why2_list_find but I changed it a bit
2023-04-18 21:08:18 +02:00
a4da24c4b5
using new thread to cancel waiting
so fixed that shit
2023-04-12 08:02:11 +02:00
46ea373beb
created waiting llist stuff 2023-04-12 08:01:32 +02:00
afeafd78eb
removed why2_accept_thread close TODO 2023-04-05 14:24:40 +02:00
6a4034668b
implemented waiting llist in alarm_handler 2023-04-05 11:21:21 +02:00
278e880e62
created waiting llist
it contains only function for push
2023-04-05 11:12:01 +02:00
cdcc9e53b4
removed all why2_listen_server formatting todos 2023-04-05 10:21:47 +02:00
2991b1f2c3
removed server crash bug todo 2023-04-05 10:20:38 +02:00
aeed3cc5ee
added client timeout todo 2023-04-05 10:18:57 +02:00
c78a82e381
removed stuck TODO 2023-04-05 10:18:11 +02:00
28b2baae3c
fixed infinite waiting in communication loop
yeah I used signal.h (alert) and it works... yay
2023-04-05 10:16:53 +02:00
2f6bf93bf7
added infinity loop todo 2023-04-01 13:46:02 +02:00
0132c00f46
preventing memleaks on exit in why2_communicate_thread loop 2023-04-01 13:36:58 +02:00
8988b88b22
removed unused if statement from why2_communicate_thread loop 2023-04-01 12:49:26 +02:00
8f6a376a62
removed why2_connection_t
it was useless as hell
2023-04-01 12:43:49 +02:00