in reply to Re: Problems with select() on socket
in thread Problems with select() on socket

Hey, thanks alot for the help. I guess my biggest problem is not truly understanding the way select() works. (yes, I have read the POD, and googled a bit)

I was under the impression that my original code would switch between sending and recieving as reply packets start coming in.

In the rewritten code, what will happen if replies start arriving before the "for(..)" loop is finished? will they be handled?

  • Comment on Re: Re: Problems with select() on socket

Replies are listed 'Best First'.
Re: Re: Re: Problems with select() on socket
by pg (Canon) on Nov 26, 2003 at 17:19 UTC

    Yes, the system will queue them for you. Also instead of sending to 3000 at once, you can group them into smaller grounps.