This is my project to do list:
- You must create a communication program in the form of a client and server.
- The server must be launched first, and after being launched it must display its PID.
- The client will take as parameters: The server PID and the string that should be sent.
- The client must communicate the string passed as a parameter to the server. Once the string has been received, the server must display it.
- Communication between your programs should ONLY be done using UNIX signals.
- Your server should be able to receive strings from several clients in a row, without needing to be restarted.
- You can only use the two signals SIGUSR1 and SIGUSR2.
I'm only allowed to use the following functions:
- signal • sigemptyset • sigaddset • sigaction • kill • getpid
- write • malloc • free • pause • sleep • usleep • exit
I've done the easy part: getting the Server PID. Now I feel completely lost since I can't find anything related to this exercise.