summaryrefslogtreecommitdiff
path: root/protocol.txt
blob: fda26406c80034b70b3c207806b8bb49aaacc42f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)