Basic input message support.

This commit is contained in:
Michael Jumper
2010-09-06 18:40:53 -07:00
parent 15a84adf59
commit 940b2b99fa
3 changed files with 118 additions and 0 deletions

View File

@@ -162,6 +162,8 @@ void proxy(int client_fd) {
/* VNC Client Loop */
for (;;) {
/* TODO: Separate into THREADS ... no need to do this weird polling thing */
wait_result = WaitForMessage(rfb_client, 2000);
if (wait_result < 0) {
fprintf(stderr, "WAIT FAIL\n");
@@ -176,6 +178,12 @@ void proxy(int client_fd) {
}
}
wait_result = guac_select(io, 2000);
if (wait_result > 0) {
guac_read_message(io);
}
}
/* Free PNG data */