There's an example for it in the docs, but error handling is left for the reader. And when you actually go through the spec and man pages to see all the obscure edge cases that you should handle, because otherwise you have all these small hidden races...
I mean, the expectation is that everyone implements this on their own. Or I don't know, use gtk or qt, because who would use the raw protocol, am I right?
No matter how you try to think about this no good things come out.
