[Xcb] knowing when the X server will send the reply

Vincent Torri vtorri at univ-evry.fr
Fri Jan 25 01:59:48 PST 2008

On Fri, 25 Jan 2008, Barton C Massey wrote:

> In message <Pine.LNX.4.64.0801231628170.25268 at grozny.maths.univ-evry.fr> you wrote:
>>>> hmm, i found that :
>>>> http://xcb.freedesktop.org/ProtocolExtensionApi/#index5h2
>>>> it seems that it's useful only for extensions, but can it be used for the
>>>> core protocol too ?
>>> No ideas if it's safe to use that xcb_poll_for_reply function ?
>> any idea if that  function is what I want ? Bart ? Jamey ? or others ?
> I still don't understand or don't remember what you're
> trying to do...

raster wants an event driven design for xcb support in ecore. That means 
that he wants to send an ecore event when a requested reply is available. 
In the main loop, we get teh ecore event and the associated xcb reply


1) we send a request that wants a reply.
2) in the  loop we check for available replies (with xcb_poll_for reply ?)
3) if one exists, we send an ecore event where we store the reply
4) the client app can catch the event and hence the reply and deal with 


More information about the Xcb mailing list