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,079 of 14,669   
   Rick Jones to David Schwartz   
   Re: how to make sure if there is data in   
   05 Oct 09 19:53:00   
   
   59e331ce   
   From: rick.jones2@hp.com   
      
   David Schwartz  wrote:   
   > On Oct 5, 2:21?am, GSA  wrote:   
      
   > > I have a requirement wherein I need to check if data is there on   
   > > the channel and read it when it is there.   
      
   > > Please let me know if it is possible to check if data is there on   
   > > the channewl and preoceed with reading the channel only when data   
   > > is there.   
      
   > Simply attempt to read from the channel using a non-blocking read. If   
   > you get data, then there was data on the channel. There is no good way   
   > to know that there is data on the channel without attempting to read   
   > from the channel.   
      
   99 times out of 10 I have found select() or poll() "good enough."   
      
   rick jones   
   --   
   I don't interest myself in "why". I think more often in terms of   
   "when", sometimes "where"; always "how much."  - Joubert   
   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)   

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


(c) 1994,  bbs@darkrealms.ca