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,083 of 14,669   
   Jorgen Grahn to David Schwartz   
   Re: how to make sure if there is data in   
   07 Oct 09 12:22:51   
   
   857b9e45   
   From: grahn+nntp@snipabacken.se   
      
   On Tue, 2009-10-06, David Schwartz wrote:   
   > On Oct 5, 2:03 pm, Barry Margolin  wrote:   
   >   
   >> You could also use the FIONREAD ioctl, which returns how much data is   
   >> buffered.  If it's non-zero, data is there.   
   >   
   > You're right! That works.   
   >   
   > Note that you must not refuse to call 'read' until "enough" data is   
   > available. That can cause deadlock.   
   >   
   > (But 9 times out of 10, the person is asking the wrong question.)   
      
   Speaking of the wrong question, what is this "channel" you are all   
   talking about?  Are you mentally translating it to "socket", or did   
   I miss some new important alternative to the socket API?   
      
   /Jorgen   
      
   --   
     // Jorgen Grahn    O  o   .   
      
   --- 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