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

  • Thread starter Voronkov Konstantin
  • Start date
V

Voronkov Konstantin

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
 
A

Alex Fraser

Voronkov Konstantin said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top