Hello,
in my program I use (read-line) to read data coming from pipe (I use newlisp -c).
My problem is (read-line) blocks the program until something is found.
Instead I need to check the pipe, and read data only if exist. If no line exist, I need to continue the program.
How can I do it? (Can I get current pipe length for example?)
Thank you!
(read-line) non blocking
This url led me to this promising thread ;)
I once tried playing with Windows stream read blocking and IPC in newLISP, but eventually changed my approach and language for various reasons.
You will probably have to utilize Win32 API functions, but I can't help beyond that. I haven't seen much discussion of Win32 API use on this board, so you might have better luck asking Google or Win32 API specific boards for help.
I once tried playing with Windows stream read blocking and IPC in newLISP, but eventually changed my approach and language for various reasons.
You will probably have to utilize Win32 API functions, but I can't help beyond that. I haven't seen much discussion of Win32 API use on this board, so you might have better luck asking Google or Win32 API specific boards for help.