On Fri, 25 Oct 2002, Preetham wrote:
> Hi All:
> i would like to know the Client that sent a particular xReq to the
> server. When the X Client sends a request to the XServer, the xRqq
> contains the Type and the Data. Is the X Client ID(or some kind of
> identification) present in the data.
> Appreciate the help.
> Thanks,
> Preetham.
I don't think the client really even knows its client ID,
though it can be derived from the resources it creates because
we know the algorithm. I believe the X-server has associated a
client ID with a socket and that info resides on its end of the pipe.
Even when deriving the client ID from the resources, this is not
foolproof because not all requests have XIDs in them and clients
can reference XIDs created by other clients. Also, the algorithm
can differ between XFree86 and other servers.
Mark.
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert