How do I use the Event driven system to...

Ive gotten to know and use GTK pretty well so far, but I haven't seen how to do things that aren't event driven. For example, how would one monitor the serial port or uSB port for incomming data to display on the graphics area as it comes in. Can I somehow attach a GTK event to the serial port and get dropped in a callback routine to grab data when I see a byte? I don't need to know how to monitor the serial port, I can do that already but if GTK sits in an event loop, how do you get input from non GTK stuff to use and display with GTK?


Doug P

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]