1212 Commits

Author SHA1 Message Date
885b99b7a8
added raw socket functions 2023-03-25 16:35:44 +01:00
04234d2938
implemented get_string_from_json in why2_read_socket 2023-03-24 20:45:16 +01:00
db8813b3ca
added chat-misc todos 2023-03-24 20:18:44 +01:00
01b8d716d6
added (currently) missing newline char to why2_listen_server print 2023-03-24 20:14:53 +01:00
f7a0db032e
decoding json packet in why2_read_socket 2023-03-24 20:01:15 +01:00
6f237888b1
sending json formatted packet
gonna make receiving decode this
2023-03-24 19:43:48 +01:00
0c285690eb
revert last commit (why2-memory in chat-misc)
for some reason it was causing segfault
2023-03-24 19:23:16 +01:00
f0574cae12
implemented why2-memory stuff in chat-misc 2023-03-24 19:12:22 +01:00
252c697377
implemented flags header rename 2023-03-12 15:02:06 +01:00
cd5d290a13
added WHY2-prefix at the beginning of chat-flags macros 2023-03-12 15:01:04 +01:00
b8b7b7cdff
renamed header common to flags 2023-03-12 14:59:53 +01:00
edbe07615c
removed includes from common.h 2023-03-12 14:59:07 +01:00
eedea02701
implemented CLEAR_AND_GO_UP in chat stuff 2023-03-12 14:45:58 +01:00
899b79941b
upgraded underline printing 2023-03-12 12:30:11 +01:00
92da77ff3e
fixed "local" message formatting
yeeees babyyyyyyyyyyyyy
2023-03-12 12:26:19 +01:00
c68f5a6f2b
changed why2_listen_server message formatting
it now looks good when message is received from somewhere/someone else; gonna fix own message formatting really soon

that was a good one lol
2023-03-12 12:22:42 +01:00
8cfe1e39ea
added missing chat-client listen_thread termination 2023-03-12 11:59:23 +01:00
258222160e
sort of fixed received message formatting
but actually not
2023-02-24 16:31:39 +01:00
3976c7e49c
added formatting TODO 2023-02-23 10:03:26 +01:00
c6093a8926
added terminating character to why2_read_socket 2023-02-23 09:54:10 +01:00
6fbbee7b68
added command handling to why2_communicate_thread 2023-02-23 09:05:16 +01:00
6e746b020b
server sending received to all clients
I shall fix the output lol
2023-02-22 14:37:18 +01:00
c6e98d120a
somehow defined why2_listen_server 2023-02-22 12:12:04 +01:00
0618de9584
declared why2_listen_server 2023-02-22 12:10:06 +01:00
0a331e97a8
sending received message to all clients 2023-02-22 12:07:26 +01:00
58d5c7ede8
made getting socket length more fancy 2023-02-22 11:03:15 +01:00
ba6aacb1b4
fixed deallocation order in why2_communicate_thread, again 2023-02-22 10:54:41 +01:00
66add23df5
fixed deallocation order in why2_communicate_thread 2023-02-22 10:47:14 +01:00
2c051f2cb2
fixed why2_communicate_thread thread id problem 2023-02-22 10:42:11 +01:00
4a298b94b3
added thread deallocation to chat-server 2023-02-22 10:36:37 +01:00
49978a8a53
changed why2_connection::thread type to UL 2023-02-22 10:33:42 +01:00
a5ec2c936b
added thread cancelling to why2_clean_threads 2023-02-22 10:19:36 +01:00
128cba4bf9
implemented why2_clean_threads in chat-server 2023-02-22 10:17:54 +01:00
459329e0d0
defined why2_clean_threads
meow
2023-02-22 10:16:01 +01:00
2b790a21fe
declared why2_clean_threads 2023-02-22 10:11:36 +01:00
b4c0af2739
implemented why2_connection_t in linked list 2023-02-22 10:09:58 +01:00
493724626c
created why2_connection_t struct
contains connection and pthread_t
2023-02-22 10:03:49 +01:00
736cd82240
removed why2_register_connection function 2023-02-22 10:01:03 +01:00
fbaef61ebc
removed client test print 2023-02-22 09:57:41 +01:00
1e7fbc03a8
added way to stop server 2023-02-22 09:56:23 +01:00
5a9073f595
fixed reading size
socket probably read wrongly
2023-02-22 09:43:12 +01:00
cbcfaaae92
added why2_read_socket invalid size TODO 2023-02-21 19:53:00 +01:00
ab46803a91
fixed why2_send_socket's send size 2023-02-21 19:48:28 +01:00
4b85ba17dd
why2_accept_thread param typo fix 2023-02-21 19:48:07 +01:00
54d90c7001
added missing parameter to why2_accept_thread 2023-02-21 19:38:15 +01:00
97e2d1d097
moved accept-loop to why2_accept_thread 2023-02-21 19:34:40 +01:00
89885de21e
added common todo 2023-02-21 19:29:08 +01:00
789a3ad09b
fixed sent size 2023-02-21 19:22:01 +01:00
c47c9ffece
moved registering connection to new thread 2023-02-21 18:59:44 +01:00
924c840e0d
fixed why2_read_socket allocation sizes 2023-02-21 15:38:00 +01:00