Commits

Ross Lagerwall committed bd24ee3

Add test4.py to test the command listening protocol.

Comments (0)

Files changed (1)

+import socket, struct
+
+STOPPED = 0
+BUILDING = 1
+
+STOP = -123456789
+BUILD = 1
+EXIT = 2
+
+CMDSTART = 0
+CMDFINISH = 1
+FINISHED = 2
+STDOUT = 3
+STDERR = 4
+
+s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+s.connect(('localhost', 9998))
+s.send(struct.pack('ii', BUILD, 0))
+s.close()