Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > is there any way to check asynchronously whether stdin contain data to read?

Reply
Thread Tools

is there any way to check asynchronously whether stdin contain data to read?

 
 
Voronkov Konstantin
Guest
Posts: n/a
 
      10-01-2004
Hello All!

I want to ask you whether there is any way to check asynchronously
whether stdin contain data to read. I tried all operations to read
stdin, but it looks all that operations are blocking.

Thanks in advance,
Voronkov Konstantin
 
Reply With Quote
 
 
 
 
Alex Fraser
Guest
Posts: n/a
 
      10-01-2004
"Voronkov Konstantin" <> wrote in message
news: om...
> I want to ask you whether there is any way to check asynchronously
> whether stdin contain data to read. I tried all operations to read
> stdin, but it looks all that operations are blocking.


Yes, all standard C library I/O operations are blocking. Normally there is
some OS-specific way to do what you ask, but you should ask about that on
group(s) dedicated to the system(s) of interest.

HTH,
Alex


 
Reply With Quote
 
 
 
 
Richard Bos
Guest
Posts: n/a
 
      10-01-2004
(Voronkov Konstantin) wrote:

> I want to ask you whether there is any way to check asynchronously
> whether stdin contain data to read. I tried all operations to read
> stdin, but it looks all that operations are blocking.


<http://www.eskimo.com/~scs/C-faq/q19.2.html>

Richard
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any way to determine whether a variable has properties? Ramon F Herrera Javascript 1 05-13-2009 10:22 AM
check if there is data in stdin without blocking hg Python 7 01-15-2007 06:44 PM
is there any way to check asynchronously whether stdin contain data to read? Voronkov Konstantin C Programming 3 10-04-2004 06:31 AM
is there any way to check asynchronously whether stdin contain data to read? Voronkov Konstantin C++ 0 10-01-2004 08:22 AM
is there any way to check asynchronously whether stdin contain data to read? Voronkov Konstantin C++ 1 10-01-2004 08:07 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57