1. 17 Aug, 2011 3 commits
    • Joel Martin's avatar
      websockets: Add UTF-8 encoding support. · 430b8f24
      Joel Martin authored
      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: 's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
      430b8f24
    • Joel Martin's avatar
      websockets: Better disconnect detection. · 0860c495
      Joel Martin authored
      If the only thing we are waiting on is a WebSockets terminator, then
      remove it from the stream early on in rfbProcessClientNormalMessage.
      Signed-off-by: 's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
      0860c495
    • Joel Martin's avatar
      websockets: Initial WebSockets support. · 6fac22a7
      Joel Martin authored
      Has a bug: WebSocket client disconnects are not detected.
      rfbSendFramebufferUpdate is doing a MSG_PEEK recv to determine if
      enough data is available which prevents a disconnect from being
      detected.
      
      Otherwise it's working pretty well.
      
      [jes: moved added struct members to the end for binary compatibility with
      previous LibVNCServer versions, removed an unused variable]
      Signed-off-by: 's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
      6fac22a7
  2. 22 Jul, 2011 2 commits
  3. 01 Jun, 2011 3 commits
  4. 09 May, 2011 1 commit
  5. 30 Apr, 2011 1 commit
  6. 28 Apr, 2011 4 commits
  7. 27 Apr, 2011 1 commit
  8. 30 Mar, 2011 1 commit
  9. 29 Mar, 2011 3 commits
  10. 28 Mar, 2011 3 commits
  11. 17 Mar, 2011 6 commits
  12. 12 Mar, 2011 9 commits
  13. 10 Mar, 2011 3 commits