readmetest
This commit is contained in:
parent
b15eddde92
commit
c44669bc63
31
Readme.md
31
Readme.md
@ -1,14 +1,17 @@
|
|||||||
# Todo
|
# Minitalk
|
||||||
## Extra
|
## Description
|
||||||
Add support for multiple clients at the same time
|
Minitalk is a simple project that requires you to use unix signals to send over strings between 2 programs.
|
||||||
server
|
We can only use **SIGUSR1** and **SIGUSR2** and we can use the kill function to send them over
|
||||||
client pings server every 100 msecs, and only starts writing after receiving SIGUSR2 back
|
## Improvements
|
||||||
client sends \0 when done
|
### Add support for multiple clients at the same time
|
||||||
server
|
#### Client
|
||||||
server waits for a signal when pid = 1
|
- client pings server every 100 msecs, and only starts writing after receiving SIGUSR2 back
|
||||||
when server receives signal it sets the pid to the sender pid
|
- client sends \0 when done
|
||||||
it keeps ignoring signals from other PIDs untill it received \0 from the current pid
|
#### Server
|
||||||
after \0 is received pid is set back to 1
|
- server waits for a signal when pid = 1
|
||||||
# Tester
|
- when server receives signal it sets the pid to the sender pid
|
||||||
add valgrind to tester
|
- it keeps ignoring signals from other PIDs untill it received \0 from the current pid
|
||||||
check for -Wall -Werror -Wextra
|
- after \0 is received pid is set back to 1
|
||||||
|
## Tester
|
||||||
|
- add valgrind to tester
|
||||||
|
- check for -Wall -Werror -Wextra
|
||||||
|
BIN
vgcore.473853
BIN
vgcore.473853
Binary file not shown.
Loading…
Reference in New Issue
Block a user