aboutsummaryrefslogtreecommitdiffstats
path: root/docs/protocol.md
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2019-09-29 22:25:44 +0200
committerLinus Nordberg <linus@nordberg.se>2019-09-29 22:36:19 +0200
commit7f2baa6d1c5bca64638b8ca38ad6019efec601a5 (patch)
treefefdc903a55bc4e0e46a622bed699563c3f986f8 /docs/protocol.md
parentParametrise netns#, n# and ip# (diff)
downloadwg-dynamic-7f2baa6d1c5bca64638b8ca38ad6019efec601a5.tar.xz
wg-dynamic-7f2baa6d1c5bca64638b8ca38ad6019efec601a5.zip
Add draft of protocol specification
Diffstat (limited to '')
-rw-r--r--docs/protocol.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/protocol.md b/docs/protocol.md
new file mode 100644
index 0000000..4ff9bd9
--- /dev/null
+++ b/docs/protocol.md
@@ -0,0 +1,18 @@
+# wg-dynamic protocol
+
+This document describes version 1 of the wg-dynamic protocol.
+
+The wg-dynamic protocol runs over a reliable and ordered data stream
+between a client and a server. Addressing is done on an upper layer,
+typically IP.
+
+Clients send a request message to a server and the server responds
+with a response message.
+
+Messages are ASCII text with key=value pairs separated by newline
+characters. A message ends with two consecutive newline characters.
+
+The first key=value pair is treated as a command with the key being
+the command and the value being the protocol version. The key=value
+pairs following the first pair are command attributes. The command in
+a response matches the command of the request it's a response to.