Hello, we wrote in C++ a screen sharing application based on sending screenshots.
It works by establishing a TCP connection btw the server and client, where the server forwards every new screenshot received for a user through the connection, and this is popped-up by the client.
Now, we are trying to host this on google app engine, and therefore need 'servlet'-ize and 'sandbox' the server code, so to implement this forwarding through HTTP requests.
I immagine the following: 1. Post request with the screenshot as multiple-data form (apache uploads ..). But now the server needs to contact the specified client (who is logged in) to send it/forward the screenshot. I'm not sure how to 'initiate' such connection from the servlet to the client. The client doesn't run any servlet environment (of course). I know HTTP 1.1 mantains a TCP connection, but it seems gapps won't let me use it.
1 approaches that comes to mind is to send a CONTINUE 100 to every logged in user at login, and respond with the screenshot once it arrives. Upon receival the client makes another request, and so on. an alternative (insipired from setting the refresh header for a browser) would be to have the app pool on a regular basis (every 5 secs).