X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=blobdiff_plain;f=rdpsrv.c;h=c5cb1876fb397e6f608dc8fb9457ce8b8c3215b2;hp=91989872cf530955bd5cd274a21f858e9d09818a;hb=99f2e8c32508ab193c1d42221c86cb7fca4be9ab;hpb=baeaf1330ff12ff44eeb191b85430e3657ddb7ab diff --git a/rdpsrv.c b/rdpsrv.c index 9198987..c5cb187 100644 --- a/rdpsrv.c +++ b/rdpsrv.c @@ -320,10 +320,11 @@ void handle_vnc_fbupdate(int vnc_sock) } } +int listen_on_vnc = 0; + int serve_client() { int vnc_sock = vnc_init(); - int listen_on_vnc = 0; if (!mcs_recv_connect_initial()) error("MCS_CONNECT_INITIAL recv failed"); @@ -363,6 +364,8 @@ int serve_client() } } + printf("LISTEN_ON_VNC=%u\n", listen_on_vnc); + // activity on VNC socket? if (FD_ISSET(vnc_sock, &readfs) && listen_on_vnc) { unsigned char buf[256];