diff options
-rwxr-xr-x | libvncserver/sockets.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libvncserver/sockets.c b/libvncserver/sockets.c index cea1898..b3cd955 100755 --- a/libvncserver/sockets.c +++ b/libvncserver/sockets.c @@ -464,6 +464,14 @@ WriteExact(cl, buf, len) struct timeval tv; int totalTimeWaited = 0; +#undef DEBUG_WRITE_EXACT +#ifdef DEBUG_WRITE_EXACT + rfbLog("WriteExact %d bytes\n",len); + for(n=0;n<len;n++) + fprintf(stderr,"%02x ",(unsigned char)buf[n]); + fprintf(stderr,"\n"); +#endif + LOCK(cl->outputMutex); while (len > 0) { n = write(sock, buf, len); |