Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!decwrl!gilroy.pa.dec.com!klee From: klee@gilroy.pa.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: XSelect? is there such a thing Message-ID: <1800@bacchus.dec.com> Date: 11 Sep 89 17:15:37 GMT References: Sender: news@decwrl.dec.com Distribution: comp Lines: 24 In article , thoth@shark.cis.ufl.edu (Robert Forsman) writes: >I've written multi socket game daemons before and > select does the job perfectly but I have no idea what the analogous > call is in X. If you're talking about selecting events from many windows on 1 server, XSelectEvent and XNextEvent will work fine. If you're talking about many servers, you have to use your operating system's inter-process communication multiplexing facilities. On BSD UNIX, you can use ConnectionNumber() to get file descriptors and select() on those. > If anyone has better docs handy could they tell me (all the docs on > X I've seen so far suck sewage)? If there is no such call could > someone suggest an alternative? Well, the X manuals do assume that you have some background in C programming, raster graphics, and window systems. There are many tutorials on these from other sources. There are also some "intro to X" type books around. Check any good technical bookstore. Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@decwrl.dec.com uucp: uunet!decwrl!klee