ooxcb.cookie

class ooxcb.cookie.Cookie

A Cookie is something like a placeholder for a request’s response. When invoking a request method, you will get a ooxcb.cookie.Cookie subclass instance as return value. If you need the reply, you just call the ooxcb.cookie.Cookie.reply() method and you get a ooxcb.response.Response subclass 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 the ooxcb.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 :)

check()

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.

poll_for_reply()

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.

reply()

wait for the reply of the request and return it. That will raise a XcbException if the request is void.

class ooxcb.cookie.VoidCookie

a void cookie class.