Asynchronous input from several sources: how?

Scott Draves spot at CS.CMU.EDU
Fri Jan 11 09:06:26 AEST 1991


In article <1487 at gufalet.let.rug.nl> bert at let.rug.nl (Bert Bos) writes:

   I'm writing a program using X Windows that also needs to read input
   coming in over a pipe. The incoming data is displayed in a window, but
   while that happens, the program has to check for events (expose,
   button press, etc.)


Get the file descriptor Xlib is using with ConnectionNumber, and then
do a select on that and your pipe.  If you are using Xt, then you
should use XtAppAddInput().
--

			IBM
Scott Draves		Intel
spot at cs.cmu.edu		Microsoft



More information about the Comp.unix.programmer mailing list