[cse491] HW#3

C. Titus Brown ctb at msu.edu
Mon Sep 28 18:42:04 PDT 2009


On Mon, Sep 28, 2009 at 09:39:26PM -0400, Jack Joseph Fritz wrote:
> For the third part of the homework, non-blocking.  You need to keep track of
> the socket and, as far as I can tell, instead of the inner nested while loop
> just loop through all of the sockets that you have so far.  What I don't
> understand is what other information you need to keep track of along with
> the socket in this module level dictionary that you mentioned in an earlier
> email?

Short answer: change your code to call 'client_sock.recv(1)' and then
make it work (close the connection on \n.\n, in particular).  If you can
do that, you have solved the problem 100%.

--titus
-- 
C. Titus Brown, ctb at msu.edu



More information about the cse491-fall-2009 mailing list