Commit graph

144 commits

Author SHA1 Message Date
8fcbc243b3 Add message_pipe 2022-10-21 14:20:32 +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
d73ea75c69 Add client_sockid to thread argument 2022-10-21 11:17:25 +02:00
e0ea0473b5 Create threads, remove arguments 2022-10-21 11:05:39 +02:00
c7c662aa0f Create Dispatcher prototype 2022-10-21 10:28:23 +02:00
56217910c0 Add pipe for ClientSender, rename socket argument 2022-10-21 10:23:54 +02:00
5420a3b264 Use 'client_socket' instead of child_socket 2022-10-21 10:20:27 +02:00
d3312c2898 Add TODO 2022-10-21 10:01:40 +02:00
0a1738cc94 Start converting server to threading 2022-10-21 09:48:01 +02:00
e348410a3f Use sockid instead of fd 2022-10-19 23:10:57 +02:00
db9fbb9f22 Add #define for listening on loopback or 0.0.0.0 2022-10-19 22:55:51 +02:00
8a965787a2 Update docstrings in english 2022-10-19 22:55:41 +02:00
c378f71ced Indent preprocessor directives, it's not 1970 anymore 2022-10-19 22:29:51 +02:00
a0368d403b Remove unneeded includes 2022-10-18 23:15:29 +02:00
039182fef1 EOT works out of the box apparently 2022-10-18 22:43:04 +02:00
c8b2e5ee0f Rewrite comments in english 2022-10-18 22:30:38 +02:00
8523002f0a Fix closing the sockid after killing the process 2022-10-18 22:22:53 +02:00
9ece00c916 For client Sender and Listener processes 2022-10-18 22:10:56 +02:00
ed5f637779 Typo 2022-10-18 21:39:57 +02:00
44656a604e Add Listener process for client 2022-10-18 21:36:23 +02:00
2147ed76fa Add Sender process for client 2022-10-18 21:30:55 +02:00
9d8bab4187 Use exit(EXIT_SUCCESS) instead of exit(0) 2022-10-18 21:08:38 +02:00
55ff39255e Use EXIT_* values where needed 2022-10-14 18:25:15 +02:00
c23bcbe617 Use SOMAXCONN instead of manual maximum 2022-10-14 18:21:59 +02:00
f971d7fdb7 Compile with pthread lib 2022-10-14 18:17:31 +02:00
9edb67a861 Listen on 0.0.0.0 by default 2022-10-14 18:16:46 +02:00
844f4866e4 Change print messages 2022-09-19 11:13:07 +02:00
3747b79d9e Fix EOT error : break, don't continue 2022-09-16 10:57:17 +02:00
276475b87d Change variable names and comments 2022-09-16 10:57:09 +02:00
6ede2943a4 Minor changes 2022-09-14 14:11:52 +02:00
2e977a5daf Define socket struc elements explicitly 2022-09-14 13:32:34 +02:00
04125da055 Move files to src dir 2022-09-14 12:17:11 +02:00
2a949e72c3 Comment 2022-09-14 10:28:48 +02:00
2dd1368b61 Use #ifdef to define socket PORT 2022-09-14 10:14:52 +02:00
ac33f971d3 Rename things 2022-09-14 10:14:49 +02:00
4278c3f979 Add TODO file 2022-09-14 09:43:04 +02:00
5b8aab22a9 Rename variables 2022-09-13 22:19:13 +02:00
699bae7a8d Add RUN global in interrupt 2022-09-13 21:53:09 +02:00
a0ffcfa327 Add boilerplace client/server code 2022-09-13 15:56:15 +02:00
f69cb58340 First commit 2022-09-13 13:02:40 +02:00