Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!turnkey!crystel!logan From: logan@crystel.UUCP (Mark) Newsgroups: comp.windows.x Subject: Receiving XEvents asynchronously Message-ID: <129@crystel.UUCP> Date: 15 Jan 91 20:42:07 GMT Reply-To: logan@crystel.UUCP (Mark) Organization: Secure Online Systems, Inc, Los Angeles, CA Lines: 15 I am trying to write a program, using Xlib right now, which receives input from several sockets and displays them on the screen. (I am using a SPARCstation SLC with SunOS 4.1 and OpenWindows.) The only way I can think of doing this is polling, which I am unhappy with for performance reasons. I call XCheckMaskEvent() to check for an event, and then I call select() on the socket file descriptors with a timeout of 1 second. I would rather use something like select() to check for input from the XEvent list at the same time as the sockets. Can anyone think of a way to do this? Thanks in advance, Mark Logan uunet!lcc!turnkey!crystel!logan