Status XInternalConnectionNumbers(display, fd_return, count_return)
      Display *display;
      int **fd_return;
      int *count_return;


display Specifies the connection to the X server.
fd_return Returns the file descriptors.
count_return Returns the number of file descriptors.


The XInternalConnectionNumbers() function returns a list of the file descriptors for all internal connections currently open for the specified display. When the allocated list is no longer needed, free it by using XFree(). This functions returns a nonzero status if the list is successfully allocated; otherwise, it returns zero.

See also

XAddConnectionWatch(), XRemoveConnectionWatch(), XProcessInternalConnection(), "Internal Connections".
Christophe Tronche, [email protected]