The server then responds either with OK and after that starts sending the file, or with WAIT where waiting is the number of people in front of him in the queue. After that, the server should send a WAIT message every 5 minutes, or every time the queue is shortened, which ever is shorter. This is the first version of the protocol, and you are advised not yet to code clients for it. It is likely that it will change in the near future. This document is meant to gather ideas etc.
All feedback is welcome.