summaryrefslogtreecommitdiff
path: root/protocol.txt
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-10-11 08:32:09 +0200
committertomsmeding <tom.smeding@gmail.com>2017-10-11 08:32:09 +0200
commit7549d07933091417b225d094c1648e1382287f93 (patch)
treef533b99745beb808d1cbe226a38e0232076d7b53 /protocol.txt
Initial
Diffstat (limited to 'protocol.txt')
-rw-r--r--protocol.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/protocol.txt b/protocol.txt
new file mode 100644
index 0000000..fda2640
--- /dev/null
+++ b/protocol.txt
@@ -0,0 +1,16 @@
+controller -> server:
+Just lines of text, see either program's main.c.
+
+server -> controller:
+Data frames compressed using zlib. Data frames look as follows:
+- Timestamp: (as from gettimeofday)
+ - seconds (8 bytes)
+ - microseconds (4 bytes)
+- numpids (8 bytes)
+- [numpids times:]
+ - pid (4 bytes)
+ - namelen (8 bytes)
+ - process name (namelen bytes)
+ - total user time (8 bytes)
+ - total system time (8 bytes)
+ - resident size (8 bytes)