Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
RING event on the serial port
I have a modem that is connected to the serial port of my RedHat Linux machine and I want to listen for RING events on this port. For this, I open the COM port, select the file descriptor and wait for an event to occur. I get the interrupt when I dial my modem, but how can I make sure that select returned because of RING event and not because of some other activity on the serial port?
0 · ·