b6cf405d51
Add working prompt
2022-11-04 15:09:28 +01:00
99da0b5e74
Fix sprintf in set_name
2022-11-04 14:58:13 +01:00
5c44b8d26b
Minor changes
2022-11-04 13:53:51 +01:00
302e642943
Fix interrupt handling, use pthread_kill instead of pthread_cancel
2022-11-04 13:16:54 +01:00
1827697916
Don't handle SIGCHLD for server + typo
2022-11-04 09:55:05 +01:00
d17c68e235
Handle clean exit for client
2022-11-04 09:53:58 +01:00
9e38feec1e
Server: don't call cleanup after loop, main can only quit loop with signal
2022-11-04 08:45:29 +01:00
e4bf94b5a2
Add prompt v1
2022-11-03 16:50:05 +01:00
f649fdaee7
Call clean_and_close when handling signal for server
2022-11-03 18:46:00 +01:00
b5adf46e29
Use sigaction() instead of signal()
2022-11-03 18:30:57 +01:00
020ea14d2e
Add missing args to clean_and_close function
2022-11-03 17:23:53 +01:00
ef12d984f6
Add clean_and_close function
2022-11-03 15:12:21 +01:00
69b578a382
Fix some typos
2022-11-03 17:09:36 +01:00
a46d7cf92f
Fix parser and typo
2022-11-03 14:51:00 +01:00
5c8936c993
Fix cmd_get_name response
2022-11-03 14:43:08 +01:00
8255c6e313
Add cmd_get_name
2022-11-03 14:35:03 +01:00
Tunui Franken
2dcb227c48
Fix default value of semaphore on sem_open
...
Defaulted to 0 on Debian, to 1 on Arch
2022-11-03 16:06:54 +01:00
ddb457e6c8
Don't use cmd_send_message in cmd_hello, let lower level write() call
2022-11-03 14:49:14 +01:00
9e0ed6cfeb
Add cmd_get_name and typo
2022-11-03 10:57:41 +01:00
8eb7c31a58
Add pseudo and cmd_set_name
2022-11-03 09:43:14 +01:00
c047b33adf
Add EOF to messages sent to client
2022-11-03 11:37:03 +01:00
497e78f612
Use cmd_send_message in cmd_help too
2022-11-03 11:25:49 +01:00
87b42e49cd
Use cmd_send_message in cmd_list_connected, change display of sender
2022-11-03 11:08:37 +01:00
83178396ff
Add Rapport
2022-11-03 07:46:42 +01:00
5250d3ce34
Add TODO note
2022-11-01 23:04:23 +01:00
92c88108a8
Add comment
2022-11-01 22:55:08 +01:00
cea949d34c
Minor change
2022-11-01 22:49:47 +01:00
ed30ad5870
Implement cmd_help
2022-11-01 21:04:12 +01:00
d0da3e24e3
Send EOT to client before disconnecting
2022-11-01 20:49:26 +01:00
0567a455f5
Minor comment, print connection details after connect()
2022-11-01 20:33:58 +01:00
1862bb8410
Add TODO note
2022-11-01 17:53:10 +01:00
5a1c640a6c
Fix make clean
2022-11-01 17:49:45 +01:00
822f84c301
Handle client disconnect: add CMD_BYE, actually kill the threads
2022-11-01 17:48:00 +01:00
a8f27e10d9
Use clang to generate compile_commands.json
2022-11-01 16:49:46 +01:00
1d25dd01da
Made different semaphore per client, enforce using O_EXCL
2022-11-01 15:33:38 +01:00
03d0e80347
Implement cmd_hello
...
This command is used for the client to get its client id, which is then
used for the semaphore name. Without this, all clients share the same
semaphore.
2022-11-01 15:28:59 +01:00
1ec2b414bc
Add missing return statement for cmd_broadcast
2022-11-01 15:17:48 +01:00
b39044244a
Correctly use a named semaphore
2022-11-01 13:23:57 +01:00
8b04e79401
Implement cmd_broadcast
2022-11-01 13:08:01 +01:00
669574616d
Move receiver_id parsing to Dispatcher
2022-11-01 12:56:13 +01:00
3c655cd491
Fix error checking for strtol
2022-11-01 12:46:34 +01:00
0875433541
Remove TODO note
2022-11-01 11:58:04 +01:00
6e9efce7de
Clean up client Listener with switch statement
2022-11-01 11:13:01 +01:00
d1c6f7df70
Implement unnamed semaphore for client
2022-11-01 10:55:53 +01:00
53c5712232
Add comments to Dispatcher
2022-11-01 09:39:55 +01:00
bbcc863b7f
Add comments to cmd_send_message
2022-11-01 09:22:41 +01:00
7cde8c45c6
Fix message send
2022-11-01 02:03:46 +01:00
701656bb21
Fixing seg fault in send command
2022-10-31 23:35:01 +01:00
1f5164b51b
Change display of list command
2022-10-31 23:34:24 +01:00
ba4f4b8aa7
Fix semaphore usage, TODO: use shared memory
2022-10-30 22:57:17 +01:00