I have this piece of code to read from a serial port
sysread(COM,$buf,1); unpack("C*",$buf);
but it seems to never time out if there is nothing to read. Is there a non-blocking system equivalent (that's to say, not using the SerialPort module) to the above code - one where I can control the timeout value?
In reply to non-blocking reading by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |