Path: utzoo!censor!geac!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!zaphod.mps.ohio-state.edu!ub!uhura.cc.rochester.edu!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!ea08+ From: ea08+@andrew.cmu.edu (Eric A. Anderson) Newsgroups: comp.windows.x Subject: Re: Xlib event loop for 2 servers from single client ? Message-ID: Date: 11 Jan 91 16:12:03 GMT References: <1991Jan10.214142.1766@wrkgrp.uucp> <1991Jan10.220308.5385@crl.dec.com>, <1991Jan10.231321.22489@thyme.jpl.nasa.gov> Organization: Carnegie Mellon, Pittsburgh, PA Lines: 15 In-Reply-To: <1991Jan10.231321.22489@thyme.jpl.nasa.gov> It would be best to use ConnectionNumber(dpy), which is a macro that gets you the file descriptor, so that you can do a select on it. It might be good to put the info on how to do connections with multiple servers into the FAQ, becuase I have seen a number of questions recently about it. eg, how to do it in Xt, how to do it in xlib should cover all the bases, also programs like xtank as pointers for people to look at. -Eric ********************************************************* "My life is full of additional complications spinning around until it makes my head snap off." -Unc. Known. "You are very smart, now shut up." -In "The Princess Bride" *********************************************************