Your assignment is to write a chat client. YOU CANNOT USE ANY CODE FOUND ON THE INTERNET EXCEPT THE PAGES LINKED HERE! NONE!
You can run the server by typing (choose your own port number)
/home/rappleto/pub/Classes/CS228/Assignments/ChatClientWithPoll/server 12345
+0.10 - You have a working client
+0.10 - You correctly use poll
-0.02 Every day after Thr Apr 6th
Man page for poll at http://www.tutorialspoint.com/unix_system_calls/poll.htm.
You can see an example of poll at poll.cc.
Another example of poll and a writeup at http://www.linux-mag.com/id/357/.
Another at http://beej.us/guide/bgnet/output/html/multipage/pollman.html.