Socket Server... Why two?

djake_at_excite.it
Date: 12/13/04


Date: 13 Dec 2004 01:49:10 -0800

What's the difference between a socket server done in this way:

accept() -> select() -> recv() --- in a blocking way ---

And a socket server done in this way?

accept() -> recv() --- in a blocking way ---

Both wait for data to be received before to unblock. But what's the
advantage and disavantage in the first and in second solution?

Thanks in advance



Relevant Pages

  • Socket Server... Why two?
    ... What's the difference between a socket server done in this way: ... Both wait for data to be received before to unblock. ... advantage and disavantage in the first and in second solution? ...
    (comp.os.linux.networking)
  • Re: Socket Server... Why two?
    ... > And a socket server done in this way? ... > Both wait for data to be received before to unblock. ... this would allow you to handle other events in addition to receiving ... packets. ...
    (comp.os.linux.networking)