2018-12-19 Server

posted Dec 19, 2018, 9:20 AM by Konstantinovich Samuel
  • Modify the working server and client programs as follows:
    • Client
      1. Handshake
      2. Prompt user for input
      3. Send input to server.
      4. Get response from server and display it to user
      5. Repeat steps 2-4 until interrupted (ctrl-c).
    • Server
      1. Handshake
      2. Get data from client
      3. "Process" data - do something interesting to it
      4. Send processed data back to client
      5. Repeat 2-4 until the client exits
        1. When the client exits, the pipes will close automatically
      6. Reset for a new handshake
      7. Include a signal handler for SIGINT that will remove the WKP
Comments