aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Olaechea <pirata@gmail.com>2020-05-16 14:26:39 -0500
committerJavier Olaechea <pirata@gmail.com>2020-05-16 23:20:50 -0500
commit3e18bb898c66281349c26960aae759a48c78f3b2 (patch)
tree4f3c8444cf637308a1dc12f00f3590e7995329a6
parent8a917e52d9034d7bdaa5e14a8777eb5e6450273e (diff)
downloadcl-xcb-3e18bb898c66281349c26960aae759a48c78f3b2.tar.gz
developer-manual.md: Document cookies
-rw-r--r--docs/developer-manual.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/developer-manual.md b/docs/developer-manual.md
index d658a97..79912c0 100644
--- a/docs/developer-manual.md
+++ b/docs/developer-manual.md
@@ -1,5 +1,11 @@
# XCB Protocol
## Cookie
+
+Each request is identified by a unique number 16-bit number. We store
+the last id sent in the `xcb-connection` class. To increment the
+cookie we take advantage of SBCL's `atomic-incf`. The cookie value
+wraps around to 0 if the max value is reached.
+
## Setup
## Switch tags