Fwd: accesing the serial port in non-blocking mode ?
Mark Paulus
mark.paulus@wcom.com
Wed Jul 12 13:10:00 GMT 2000
Try doing a select(), after setting the appropriate bit in your read mask.
When your bit is set, then you can do a read() from your port.
On 2000年7月12日 14:36:54 -0600, Philippe Moutarlier wrote:
>>Hi everybody,
>>please excuse this newbie question : I am trying to access and control
>my serial ports using open + read/write + tcgetattr/tcsetattr. I need
>to have the read in non-blocking mode so I set the VMIN and VTIME
>to be both 0.
>>But the read still blocks ...
>>I also seem to have pbs setting the speed to 115200 using the
>c_flag attribute.
>>I have just downloaded and installed the latest cygwin.
>>Am I doing something wrong or is it just not possible ?
>>Thanks
>>Philippe
>>--
>Want to unsubscribe from this list?
>Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
More information about the Cygwin
mailing list