ooxcb.cookie¶
A Cookie is something like a placeholder for a request’s response. When invoking a request method, you will get a
ooxcb.cookie.Cookiesubclass instance as return value. If you need the reply, you just call theooxcb.cookie.Cookie.reply()method and you get aooxcb.response.Responsesubclass instance. The request is sent and handled just when you call reply. If you have a request without a response (a void request), you have to call the ..._checked method to be able to check this specific cookie using theooxcb.cookie.Cookie.check()method.See http://lists.freedesktop.org/archives/xorg-announce/2006-September/000134.html for a better description of checked and unchecked requests :)
Explicitly check a void, checked request. Raises an error if there is one. If there is none, None is returned. That will raise an XcbException if the request is not checked and/or not void.
return the reply of the request if there is one. If not, don’t wait for the reply to come, just return None. That will raise a XcbException if the request is void.
wait for the reply of the request and return it. That will raise a XcbException if the request is void.
a void cookie class.