i wanted to know how to read the status of RTS/CTS line using ioctl calls....i am programming using c/c++ and linux

if someone can post a code snippet or suggest a book for the same...it will be very helpful....

2. also i will like to know can a windows application and a rtos application do RTS/CTS handshaking

is there any special care needeed to be taken ?!!

thanking in anticipation:)

You can use the Windows API function SetCommState to control the high level RTS/CTS control line behaviour in Windows.

Use EscapeCommFunction () to manually set RTS/CTS and GetCommModemStatus () to test the current state of RTS/CTS.

Not so sure about Linux.