summaryrefslogtreecommitdiffstats
path: root/x11vnc/macosxCGP.c
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2011-08-16 14:02:33 +0200
committerJohannes Schindelin <johannes.schindelin@gmx.de>2011-08-17 12:41:24 +0200
commit430b8f2449dee8c7128542678aa09c9f4588b939 (patch)
tree53995c4c52da33dd711faf6af82fa5222dfd50bd /x11vnc/macosxCGP.c
parent0860c4951fd1b6d90158c35ead4a4c33635802bb (diff)
downloadlibtdevnc-430b8f2449dee8c7128542678aa09c9f4588b939.tar.gz
libtdevnc-430b8f2449dee8c7128542678aa09c9f4588b939.zip
websockets: Add UTF-8 encoding support.
This is not completely standard UTF-8 encoding. Only code points 0-255 are encoded and never encoded to more than two octets. Since '\x00' is a WebSockets framing character, it's easier for all parties to encode zero as '\xc4\x80', i.e. 194+128, i.e. UTF-8 256. This means that a random stream will be slightly more than 50% larger using this encoding scheme. But it's easy CPU-wise for client and server to decode/encode. This is especially important for clients written in languages that have weak bitops, like Javascript (i.e. the noVNC client). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'x11vnc/macosxCGP.c')
0 files changed, 0 insertions, 0 deletions