select() under windows only works for sockets, not files, not pipes,
nothing
else. A replacement? Get a good strong cup of coffee, put the kids to
bed
and go search MSDN.
----- Original Message -----
From: "Alain Paschoud" <ala...@ge...>
To: <dev...@li...>
Sent: Tuesday, March 02, 2004 8:39 AM
Subject: [Dev-C++] Select and serial port
> 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.
>
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what youre looking for faster
http://search.yahoo.com
|