PROTOCOL
author viric <viriketo@gmail.com>
Mon, 18 Jul 2011 22:48:54 +0200
branchqueuelimit
changeset 293 bb87d5e7c466
parent 165 7b914d4003c2
permissions -rw-r--r--
Closing this branch, where I wrote bad code about adding the proper handling of queue limits by blocking clients.

[ Totally outdated document ]

New job
-------------------------
Client: Msg [ new job (commandsize,filenamesize)]
Client: Command (+null)
Server: Msg [ NewJob OK ]
--- pause until the server allows running ---
Server: Msg [ RunJOB ]
Client: Msg [ RunJOB OK ]
Client: (if needed) Filename (+null)
--- pause until the client process finishes ---
Client: Msg [ EndJOB ]
Client: close.

List
-------------------------
Client: Msg [ LIST ]
Server: Msg [ List_line ]
Server: line (+null)
Server: Msg [ List_line ]
Server: line (+null)
...
Server: close.