Commit graph

23 commits

Author SHA1 Message Date
302e642943 Fix interrupt handling, use pthread_kill instead of pthread_cancel 2022-11-04 13:16:54 +01:00
f649fdaee7 Call clean_and_close when handling signal for server 2022-11-03 18:46:00 +01:00
5250d3ce34 Add TODO note 2022-11-01 23:04:23 +01:00
1862bb8410 Add TODO note 2022-11-01 17:53:10 +01:00
822f84c301 Handle client disconnect: add CMD_BYE, actually kill the threads 2022-11-01 17:48:00 +01:00
1d25dd01da Made different semaphore per client, enforce using O_EXCL 2022-11-01 15:33:38 +01:00
b39044244a Correctly use a named semaphore 2022-11-01 13:23:57 +01:00
0875433541 Remove TODO note 2022-11-01 11:58:04 +01:00
d1c6f7df70 Implement unnamed semaphore for client 2022-11-01 10:55:53 +01:00
ba4f4b8aa7 Fix semaphore usage, TODO: use shared memory 2022-10-30 22:57:17 +01:00
62967f9543 Use semaphore instead of thread mutex for client 2022-10-29 21:37:28 +02:00
99f046e4ad Update TODO with semaphore instead of mutex 2022-10-29 20:20:01 +02:00
33e84b4e76 Add TODO for process mutex 2022-10-29 20:14:08 +02:00
a648009b8c Add mutex for writing to stdout on the client 2022-10-29 20:11:57 +02:00
c93e56f254 Fix race condition on ClientListener and ClientSender threads
Threads were launched before the client details were registered
2022-10-29 19:45:25 +02:00
9c50b8e3d1 Add TODO for Bad file descriptor 2022-10-29 17:54:31 +02:00
cc5ccd053c Add client_id 2022-10-21 15:08:12 +02:00
b2c3523d05 Add TODO 2022-10-21 14:19:52 +02:00
3a4259d6d9 Create client details in server loop, pass to threads 2022-10-21 14:03:10 +02:00
47ed9ddad8 Create struct for client_details, initialize global array containing these structs 2022-10-21 13:51:03 +02:00
f7695f764b Reword TODO 2022-10-21 13:29:55 +02:00
1414298846 Add TODO 2022-10-21 11:27:13 +02:00
4278c3f979 Add TODO file 2022-09-14 09:43:04 +02:00