NAME
XConnectionNumber, ConnectionNumber − get connection number or file descriptor.
Synopsis
int XConnectionNumber(display)
Display *display;
Arguments
displaySpecifies a connection to an X server; returned from XOpenDisplay().
Description
XConnectionNumber() returns the connection number for the specified display. On a POSIX-conformant system, this is the file descriptor of the connection. The C language macro ConnectionNumber() is equivalent and slightly more efficient.
Copyright O’Reilly & Assoc. —