From: rick.jones2@hp.com   
      
   Barry Margolin wrote:   
   > In article ,   
   > Rick Jones wrote:   
      
   > > Barry Margolin wrote:   
   > > > In article ,   
   > > > Rick Jones wrote:   
   > > > > 99 times out of ten, the connection is fully established before   
   > > > > accept() is called right?   
   > >   
   > > > Really? Most of the time, the server blocks in accept(), waiting   
   > > > for a connection to be established.   
   > >   
   > > Right - but the connection indication is not sent upstream until the   
   > > handshake is complete, so accept() does not complete (OK, *slight*   
   > > moving of the goalposts from called to completed) until the handshake   
   > > is complete. There are options for "eager" or "early" sending of the   
   > > notification upstream but I wasn't under the impression they were   
   > > common.   
      
   > You said "before accept() is called", but now you're talking about   
   > "before accept() completes".   
      
   Yes. That is why I copped to a slight moving of the goal posts :) The   
   100th time out of ten, would be when the connection is in established   
   before one gets to the accept() call - such as one must assume   
   possible in the window between the call to listen() and the call to   
   accept().   
      
   rick   
   --   
   Process shall set you free from the need for rational thought.   
   these opinions are mine, all mine; HP might not want them anyway... :)   
   feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|