[ee122] Iterating through existing sockets on server.
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?
> ee122 mailing list
> ee122 at mailman.ICSI.Berkeley.EDU
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ee122