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

Frontend for a distributed IP multicast program



Hello,

	I'm interested in putting together a gtk frontend for an
assignment written in C that'll both need to monitor and write to an IP
multicast socket and respond to user commands.

	It occurs to me that once I call gtk_main(), though, the program
will stop doing anything but respond to user input.

	The solution that I came up with was to set up a signal-handling
function that reads pending messages off the socket and call alarm(1)
before entering gtk_main(). (I'd also put another alarm(1) at the end of
the signal handling function; the net effect being that the program would
thus check the socket once per second.)

	Anyone have better suggestions? (Multithreading, perhaps?)

Matt



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