home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.protocols.tcp-ip      TCP and IP network protocols.      14,669 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 13,028 of 14,669   
   Barry Margolin to David Schwartz   
   Re: shutdown(2) and TCP socket buffers   
   30 Aug 09 17:00:32   
   
   5ae1a43a   
   From: barmar@alum.mit.edu   
      
   In article   
   <2f8a8fc5-f1d9-438a-86ae-da491621e54c@x25g2000prf.googlegroups.com>,   
    David Schwartz  wrote:   
      
   > On Aug 28, 6:21 pm, Barry Margolin  wrote:   
   >   
   > > > Doing a shutdown(SHUT_RD) on a TCP socket is not sensible. You have to   
   > > > remember, that 'shutdown' is protocol-neutral and is designed to   
   > > > support protocols that have a meaningful way to shut down the read   
   > > > end.   
   >   
   > > Such as?   
   >   
   > Unidirectional pipes.   
      
   shutdown() can only be used on sockets, not pipes.  And aren't most pipe   
   implementations unidirectional, so why would you need to shutdown one   
   direction explicitly?   
      
   --   
   Barry Margolin, barmar@alum.mit.edu   
   Arlington, MA   
   *** PLEASE don't copy me on replies, I'll read them in the group ***   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca