Subj : Re: Threading and Timeouts To : comp.programming.threads From : Giancarlo Niccolai Date : Thu Jul 21 2005 02:08 am David Schwartz wrote: > > "Giancarlo Niccolai" wrote in message > news:dbmbi4$ot9$1@newsread.albacom.net... > >> No; if the underlying protocol can accept data fragmentation (i.e. TCP), >> write() will post to the network layer exactly the data that can pass in >> that moment (and will return how many characters have been delivered), > > Where do you find this guaranteed? In the send() specification. I already posted it, please read it or search it on the web. > >> If any of this weren't the case, then the POSIX specifications about >> select() wouldn't be possibly fulfilled, as it explicitly says that after >> that select() declares a socket ready, it MUST NOT BLOCK the very next >> operation for which select() was queried . > > It does not say that anywhere. You are totally making that up. > EHHHH? Here it is: A descriptor shall be considered ready for writing when a call to an output function with O_NONBLOCK clear would not block, whether or not the function would transfer data successfully. If this doesn't mean what I said... well tell me what it means. Giancarlo. .