[ee122] Iterating through existing sockets on server.

Josh Hunt joshua.hunt at berkeley.edu
Wed Sep 19 23:26:29 PDT 2007

Have you checked out Beej's guide?  I'm doing something similar to his
selectserver.c example.  Hope this helps.


On 9/19/07, Richard Schmidt <huntingtonsurfca at gmail.com> wrote:
> I talked to Jorge about how to abstinate from using auxillary structures
> to dynamically store new client socket connections, but unfortunately I
> can't find any information on it.
> Is there a way to hold onto many dynamic sockets without creating some
> sort of data structure with which to keep track of the fd's, so that I can
> iteratively see if any are ready to be interacted with?
> Also, is there a way to timeout accept() so that I can do more processing
> if there are no waiting connections? How exactly am I supposed to bypass it
> if it hangs the system?
> Thanks
> Rick
> _______________________________________________
> ee122 mailing list
> ee122 at mailman.ICSI.Berkeley.EDU
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/ee122
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/ee122/attachments/20070919/f39a0747/attachment-0001.html 

More information about the ee122 mailing list