TCStandardIO - non-blocking I/O cross platform

BlitzMax Forums/BlitzMax Programming/TCStandardIO - non-blocking I/O cross platform

Alessandro(Posted 2009) [#1]
Hello,

I have a big problem. I'm successfully using stdio pipes to interprocess communication.
My problem is Blitzmax and TCStandardIO haven't any method to check if data are available in the std input, using a non-blocking operation (something like "dataAvail()").

I cannot use api specific, since my game will work either on windows or Linux (I work on Linux Mint 6).

Please can you help me?

Thank you!


Kurator(Posted 2009) [#2]
i would suggest to use threads (they are platform independent) to get async behaviour :)


Alessandro(Posted 2009) [#3]
Yes, thank you, I was checking them just now!
They worked perfectly, so I'm wrapping my thread in a "real class" (type).

Thank you for the help!