summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-11 16:49:01 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-11 16:49:01 +0100
commit0fad0c11cef499b39cbcb14955a69751d7767cfb (patch)
tree9625df4c5b297b74b063d312c3584e7a5730a848
parent978a35f467f9219ee3d3a25e93272697581ea19e (diff)
downloadecon-0fad0c11cef499b39cbcb14955a69751d7767cfb.tar.gz
econ-0fad0c11cef499b39cbcb14955a69751d7767cfb.tar.bz2
econ-0fad0c11cef499b39cbcb14955a69751d7767cfb.zip
econproxy: Try to send Zlib data (also not supported :[)
-rw-r--r--econproxy.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/econproxy.c b/econproxy.c
index f1e55a1..ac65416 100644
--- a/econproxy.c
+++ b/econproxy.c
@@ -543,9 +543,10 @@ rfb_retrieve_framebuffer_update(struct ep *ep,
}
break;
#endif
-#if 0
+#if 1
/* seems to be not supported */
case 16: /* ZRLE */
+ case 6: /* Zlib */
{
uint32_t length;
if (read(ep->vnc_fd, &length, sizeof length) < 0)
@@ -684,13 +685,13 @@ rfb_init(struct ep *ep)
uint8_t cmd;
uint8_t padding;
uint16_t number_of_encodings;
- uint32_t encodings[3];
+ uint32_t encodings[4];
} cmd_set_encodings = {
- 2, 0, htons(3),
-#if 1
- { htonl(0) /* RAW */, htonl(7) /* Tight */, htonl(16) /* ZRLE */ }
+ 2, 0, htons(4),
+#if 0
+ { htonl(0) /* RAW */, htonl(7) /* Tight */, htonl(6) /* Zlib */, htonl(16) /* ZRLE */ }
#else
- { htonl(7) /* Tight */, htonl(16) /* ZRLE */, htonl(0) /* RAW */ }
+ { htonl(6) /* Zlib */, htonl(7) /* Tight */, htonl(16) /* ZRLE */, htonl(0) /* RAW */ }
#endif
};