[ee122] a project 1A question

Daniel Killebrew dank at eecs.berkeley.edu
Thu Sep 20 21:15:04 PDT 2007

Thought this might be helpful to others:

> BTW -> How do I iterate through the read_set? I don't want to create 
> an auxilliary structure holding addresses to sockets made by accept() 
> (they're already in the read set), but I don't know how to access each 
> element of the set. Jorge told me there is a way I can loop through 
> the read set but I can't find any information on it.
Read set only keeps track of which sockets you want to select on. When 
select returns only the active sockets have the corresponding bit set.  
You will have to keep track of all open sockets.


More information about the ee122 mailing list