--- /dev/null
+@node Protocol
+@unnumbered Protocol
+
+Protocol is very simple: @url{https://en.wikipedia.org/wiki/Bencode,
+bencode}d dictionary is sent over TCP.
+
+@itemize
+@item @code{v} key contains the data you want to paste
+@item optional @code{e} key, holding the desired filename extension,
+ without the leading dot, up to 9 characters long
+@end itemize
+
+@example
+"hello world" => d1:v11:hello worlde
+"http://example.com/" and "url" extension => d1:e3:url1:v18:http://example.come
+@end example