Path: utzoo!attcan!uunet!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!samsung!umich!terminator!citi.umich.edu!dpg From: dpg@citi.umich.edu (David Gorgen) Newsgroups: comp.sys.apollo Subject: Re: Multiplexing X events with other events (IPC) Summary: Use ConnectionNumber() Message-ID: <1990Oct8.154655.12587@terminator.cc.umich.edu> Date: 8 Oct 90 15:46:55 GMT References: <9010051535.AA15148@mwunix.mitre.org> Sender: usenet@terminator.cc.umich.edu (usenet news) Reply-To: dpg@citi.umich.edu (David Gorgen) Organization: Hewlett-Packard/Apollo Lines: 20 In article <9010051535.AA15148@mwunix.mitre.org> m20563@MWVM.MITRE.ORG (JOHN PYBURN) writes: > We are attempting to come up with an event based loop that would deal with > both an X event and some type of Interprocess Communication Event (RPC, > socket, something else ?). Anybody out there done anything like this ? > > i.e. Either doing a select or an ec2_$wait on both x events and other events ? > * Thanks Much, > * John > * Internet jpyburn@mitre.org You can use the Xlib macro ConnectionNumber or routine XConnectionNumber to get the file descriptor of the connection to the X server. Once you have that you can use it in a select call with whatever other fd's you want. -- Dave Gorgen -- Dave Gorgen / GTD-East (formerly Apollo Computer), Hewlett-Packard Company located at: University of Michigan, CITI dpg@citi.umich.edu (Center for Information Technology Integration) 313-747-4075