Hi all,
I use dev-cpp on windows to port a simple code to get data from serial port using select. The code is well working under linux. But on windows, the return value of select is always "-1" (the select returns -1 at once).
Is it impossible to use select for serial ports ? If yes, How could I do non-blocking read ?
Thank you for any help or advice.
Attached : the simple program I did to test select.
|