🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #25226

Integrating X event queues with other events

#25226
From: josh
Date: Sat, 21 Mar 1987 23:50
20 lines
1565 bytes
Has anyone had experience with integrating X events with other
asynchronous events such as interprocess[or] communication?  What I
want to do is write a procedure that efficiently (without polling)
returns to me the next event that occurs, be it X server generated, or
otherwise.  I am new to Unix system programming, though I've done this
sort of thing on VMS.

After paging through the Xlib code for reading events and looking
through Sun/Unix documentation, it seems that I have to find the
socket a client uses to talk to the server, and lump it together with
other client-owned sockets in a SELECT call.

This seems straightforward enough, though it requires accessing Xlib
internal data.  Does anyone have any caveats about this approach, or
is there a better way?  How portable are programs that use sockets?
How portable are programs that refer to Xlib internal data structures?
Are sockets a UNIX concept, BSD concept, or a SUN concept?

Thanks very much,
-Joshua D. Marantz
Technical Details
Message-ID: <8703212350.AA26398@ATHENA>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!ames!ucbcad!ucbvax!VX.LCS.MIT.EDU!josh

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!ames!ucbcad!ucbvax!VX.LCS.MIT.EDU!josh
From: josh@VX.LCS.MIT.EDU.UUCP
Newsgroups: comp.windows.x
Subject: Integrating X event queues with other events
Message-ID: <8703212350.AA26398@ATHENA>
Date: Sat, 21-Mar-87 18:50:31 EST
Article-I.D.: ATHENA.8703212350.AA26398
Posted: Sat Mar 21 18:50:31 1987
Date-Received: Sun, 22-Mar-87 17:40:28 EST
Sender: daemon@ucbvax.BERKELEY.EDU
Distribution: world
Organization: The ARPA Internet
Lines: 20