Commit graph

208 commits

Author SHA1 Message Date
990bfeef98 Write about commands, start writing about server functions 2022-11-06 14:33:03 +01:00
0c03d2247a Getting existing group when it was not found is an error 2022-11-06 14:33:03 +01:00
be3a941777 Rename set_group to join_group 2022-11-06 14:32:53 +01:00
fa249aa464 Fix typo, add comments, remove client from its groups in disconnect_client 2022-11-06 09:18:33 +01:00
dae0f97fef Finish server definitions 2022-11-06 08:53:09 +01:00
bbd91b187d Add TODO for date 2022-11-06 08:10:28 +01:00
88bc409244 Add TODO note 2022-11-05 23:34:18 +01:00
55d1b5561a Update rapport 2022-11-05 21:12:35 +01:00
042627b2e4 Start explaining server 2022-11-05 17:09:29 +01:00
a40444ee9f Add choix du langage, + typos 2022-11-05 16:35:36 +01:00
9594fc2771 Compile rapport 2022-11-05 16:19:05 +01:00
994649dda6 Explain client functions and mutex 2022-11-05 16:18:24 +01:00
5b367eafe8 Move architecture.md in rapport 2022-11-05 14:31:29 +01:00
1f8462b7c6 Start rapport 2022-11-05 12:43:50 +01:00
911423a7f5 Add TODO note 2022-11-05 11:24:21 +01:00
36fe9a11eb Add config header file 2022-11-05 10:14:49 +01:00
3ea2b472ad Remove empty Rapport 2022-11-05 10:07:47 +01:00
ec5a314722 Implement sending to group 2022-11-05 10:01:10 +01:00
4f591da4a9 Minor change 2022-11-05 10:00:59 +01:00
3d0c7dbd5e Fix trailing new line when received incomplete message 2022-11-05 09:39:50 +01:00
c779b7ce24 Implement list groups 2022-11-05 09:39:33 +01:00
6cf95e27c7 Really implement list_clients 2022-11-05 09:21:26 +01:00
93ce6c0929 Add error_print to perror 2022-11-05 08:47:03 +01:00
0fe3926844 Refrase help message 2022-11-05 08:37:42 +01:00
e4ee776562 Update comments for case CMD_SEND, in preparation of group sending 2022-11-05 08:33:57 +01:00
bd835501f9 Add debug messages 2022-11-05 08:24:10 +01:00
2b3ea97516 Formatting 2022-11-05 08:17:35 +01:00
4edd32510e Remove obsolete TODOs 2022-11-05 08:10:48 +01:00
4c3deda8db Use #define log prints where applicable 2022-11-05 08:09:58 +01:00
2813a603fc Set log level to DEBUG 2022-11-05 00:22:03 +01:00
63b0385704 Use #define log_prints in server 2022-11-05 00:20:06 +01:00
57edd47561 Fix call to list_groups 2022-11-04 23:43:30 +01:00
56aab1cbec Simplify error sending 2022-11-04 23:33:06 +01:00
5c06da2b6d Minor changes 2022-11-04 23:15:13 +01:00
ea9b2a28dd Fix wrongly copied condition 2022-11-04 23:14:57 +01:00
e6d035909b Fix group creation because array wasn't initialized 2022-11-04 23:02:04 +01:00
3045baf45b Add file, line and function information to debug macros 2022-11-04 22:21:27 +01:00
2a0050e10e Add base for listing groups. Missing cmd_list_groups content 2022-11-04 22:11:40 +01:00
c88899c86c Send message work with client name and not cliend id 2022-11-04 22:11:40 +01:00
0b22f643ba Fix cmd_set_group and cmd_set_client because of an inverted condition 2022-11-04 22:11:40 +01:00
af90a28632 The server send error message to client 2022-11-04 22:11:40 +01:00
dc1cb8c1ca Handle errors for mmap 2022-11-04 21:51:08 +01:00
cd47cebbfc Fix prompt by sharing prompt between process 2022-11-04 20:16:14 +01:00
9405e7bed4 Set defines for error, warn, info and debug prints 2022-11-04 17:15:41 +01:00
7b99457026 Trying to share prompt between all clients process 2022-11-04 17:14:22 +01:00
c84c7ab8ae Fix segfault when token is NULL (after a client didn't send all arg for it's command) 2022-11-04 16:34:28 +01:00
ca6156b9bc In cmd_set_group, create_group if needed 2022-11-04 16:15:46 +01:00
5fbc19ce92 Change return value of get_id* functions 2022-11-04 16:09:49 +01:00
36aa35b56e Update help 2022-11-04 16:02:00 +01:00
9f67cdd290 Add cmd_set_group to Dispatcher 2022-11-04 16:02:00 +01:00