Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!texsun!letni!mic!supernet!gtoye From: gtoye@supernet.haus.com (Gene Toye) Newsgroups: comp.windows.x Subject: X Terminal Emulator design question Summary: How to watch for X Events and traffic on a socket without polling. Message-ID: <1990Aug24.195426.17158@supernet.haus.com> Date: 24 Aug 90 19:54:26 GMT Distribution: comp Organization: Harris Adacom Corporation Lines: 22 I am new to X programming. I have been reading the O'Reilly books as well as others. The concepts of X programming are clear enough based on my experience with other windowing systems. I am designing a terminal emulator and have a design issue I cannot find a good answer for: How can I code a X event loop that also watches for traffic on a second socket connection? I would like to implement the program as a single process without polling loops. Is there some way to do it with select()? I have already considered these options: a second process to watch the socket and signal the main. a polling loop to poll the X event queue and the socket. If anybody knows of a good example of this type of program (terminal emulation) on the X distribution (R4) other than the standard xterm client, please let me know. Thanks. -- Gene Toye: Harris Adacom Corporation / 16001 Dallas Pkwy. / Dallas, TX 75248 Internet: gtoye@supernet.haus.com or gtoye@supernet.lonestar.org Usenet: uunet!{iex,ntvax}!supernet!gtoye DISCLAIMER: My employer never knows what I am going to say next.