On Wed, 30 Oct 2002, Preetham wrote:

> What does the client->index point to.

   You mean in the ClientRec in the server?  That is the client number.
It ranges from 0 to (MAXCLIENTS - 1).

> The "algorithm" that you referred to, is it to do with the rendering
> requests clients send to the Xserver.

   No.  Each client has a separate socket connection to the X-server.
The X-server knows which client the request comes from because it
knows which socket it came from, therefore there is no need for any
client identifcation in the protocol stream itself.

   The X-server identifies clients by their sockets.

> Can i use the record extension to get to know all clients that are connected
> to the Xserver display.

   I sorry, but I don't know anything about the record extension.
The X-Resource extension which I added into CVS will tell this, but of
course, since it's only in CVS it's not widely available on most 
peoples systems.


                        Mark.

> Thanks,
> Preetham.
> 
> ----- Original Message -----
> From: "Mark Vojkovich" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, October 25, 2002 12:41 PM
> Subject: Re: [Xpert]xReq and the client!!!!!
> 
> 
> > 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
> 
> _______________________________________________
> Xpert mailing list
> [EMAIL PROTECTED]
> http://XFree86.Org/mailman/listinfo/xpert
> 
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to