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

Discussion in 'C++' started by Voronkov Konstantin, Oct 1, 2004.

  1. 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
     
    Voronkov Konstantin, Oct 1, 2004
    #1
    1. Advertising

  2. "Voronkov Konstantin" <> wrote in message
    news:...
    > 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.
    >


    There is no way to check that in standard C++ (or C). But your platform may
    provide a non-standard way to do this.

    john
     
    John Harrison, Oct 1, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charlie Zender

    Reading stdin once confuses second stdin read

    Charlie Zender, Jun 19, 2004, in forum: C Programming
    Replies:
    6
    Views:
    822
    Dan Pop
    Jun 21, 2004
  2. Voronkov Konstantin
    Replies:
    2
    Views:
    614
    Richard Bos
    Oct 1, 2004
  3. Voronkov Konstantin
    Replies:
    3
    Views:
    334
    Richard Bos
    Oct 4, 2004
  4. Roger Pack
    Replies:
    3
    Views:
    182
    Roger Pack
    Sep 28, 2010
  5. Ramon F Herrera
    Replies:
    1
    Views:
    98
    Thomas 'PointedEars' Lahn
    May 13, 2009
Loading...

Share This Page