------------------------------- CST8165 Lab Attendance Exercise #86 - Week 6 ------------------------------- -Ian! D. Allen - idallen@idallen.ca - www.idallen.com A. This quick exercise is to register your attendance in this lab this week. ---------------------------- Give me a quick demo of your scanner. I will test its error detection features. When we are done, submit a file containing a brief summary of the demo and testing as #86 (for Week 6): $ ~alleni/bin/cstsubmit 86 comments.txt No labels or documentation are needed for this file. B. Preparation for next lab: ---------------------------- Using the PDL from Week 4 and the lectures, modify the client.c program: 1. comment out the code that reads from the server 2. make the client loop sending lines to the server No forking is necessary - simply loop sending input to the server. When the loop breaks (one of three conditions), print a debug message giving the reason why. Run "netcat" in "listen" mode to receive lines from the client. Connect to the netcat process with your client, send a few lines, then kill the netcat process. Try to send more lines with the client. Instead of getting an error return from your write/send syscall, your client process will die receiving SIGPIPE for writing on a closed socket. Modify your client to ignore the SIGPIPE signal. Re-run the above test and note that you now get a proper error return from your write/send syscall, with errno set to "Broken pipe". You will need this for the next lab.