I have to write a Unix deamon which keeps listening to a serial port where an external internal interface keeps posting messages. I could not find any material as to how to keep listening to a serial port. Most of the books talk in detail about socket programming but not serial ports. The only code I could find on the internet was to open a serial port as a normal file and then read & write to it.
Could somebody help me out on this? Any help would be appreciated.
Thanks in advance