From: Steinar H. Gunderson Date: Fri, 4 Feb 2005 16:14:44 +0000 (+0000) Subject: Send encodings _correctly_ this time... X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b004cd46005404ab5636a623db4704e76f23d0e8;hp=7df14c250a7cc36f89a8d348cd0af833a85d58dc;p=rdpsrv Send encodings _correctly_ this time... --- diff --git a/rdpsrv.c b/rdpsrv.c index b8bc56a..a6064be 100644 --- a/rdpsrv.c +++ b/rdpsrv.c @@ -149,8 +149,11 @@ int vnc_init() buf[2] = 0; // number of encodings buf[3] = 1; buf[4] = 0; // raw encoding + buf[5] = 0; + buf[6] = 0; + buf[7] = 0; - write(vnc_sock, buf, 5); + write(vnc_sock, buf, 8); // request the entire framebuffer buf[0] = 3; // message type @@ -215,7 +218,10 @@ int serve_client() // activity on VNC socket? if (FD_ISSET(vnc_sock, &readfs)) { - char buf[256]; + unsigned char buf[256]; + + printf("Activity on VNC socket!\n"); + read(vnc_sock, buf, 1); switch (buf[0]) { case 0: