How to check connection to X server

Levine, Rob Rob.Levine at
Mon Nov 5 06:06:46 PST 2007

I have an app that connects to an X server and listens for particular

Periodically, I need to query the X serve to determine if the app is
still connected.

How can I do this?

Is there an X api call, perhaps, that I could send to the X server that
will reply with a status if the connection is ok or not?

Thanks in advance for any help!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the xorg mailing list