diff options
author | dscho <dscho> | 2004-06-18 09:15:43 +0000 |
---|---|---|
committer | dscho <dscho> | 2004-06-18 09:15:43 +0000 |
commit | 1589d04d500e7c89b91ebe828ff02a430355de28 (patch) | |
tree | f7ba54edfb7bda37f4f65af15fb084936eff2bee /libvncserver/sockets.c | |
parent | c8ccb166baa2843450779ea921ef3cca6b1b20bc (diff) | |
download | libtdevnc-1589d04d500e7c89b91ebe828ff02a430355de28.tar.gz libtdevnc-1589d04d500e7c89b91ebe828ff02a430355de28.zip |
debug
Diffstat (limited to 'libvncserver/sockets.c')
-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); |