qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] vnc: added initial websockets support
@ 2012-11-16 15:13 Tim Hardeck
  2012-11-16 15:13 ` Tim Hardeck
  2012-11-18  9:31 ` Stefan Hajnoczi
  0 siblings, 2 replies; 8+ messages in thread
From: Tim Hardeck @ 2012-11-16 15:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: Tim Hardeck, github

This patch adds basic Websockets support to the QEMU VNC component. Websockets allow every modern web browser to connect to QEMU VNC without any additional plugins.

Because of the GnuTLS requirement the Websockets implementation is optional (--enable-vnc-ws).

Websockets connections are recognized by waiting 500ms for a Websocket handshake. If no data is received a regular vnc connection is assumed.
If this is not acceptable please suggest if Websockets should be activated by a new VNC option or by an additional console parameter on a different port.

SHA1 is required for the handshake which is generated with GnuTLS. Since using GnuTLS does automatically activate VNC-TLS, which has warnings about deprecated parts, I have changed the configure script to disable VNC-TLS if not explicitly enabled.

The Websockets support was tested with noVNC http://kanaka.github.com/noVNC/ .

I have used parts of the LibVNC websockets implementation that's why I have added the GPL header to the new files. I hope that it is fine that way.

Tim Hardeck (1):
  vnc: added initial websockets support

 configure        |   34 +++++++-
 ui/Makefile.objs |    1 +
 ui/vnc-ws.c      |  236 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ui/vnc-ws.h      |  104 ++++++++++++++++++++++++
 ui/vnc.c         |   93 ++++++++++++++++++---
 ui/vnc.h         |   15 ++++
 6 files changed, 471 insertions(+), 12 deletions(-)
 create mode 100644 ui/vnc-ws.c
 create mode 100644 ui/vnc-ws.h

--
1.7.10.4

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-11-19 10:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-16 15:13 [Qemu-devel] [PATCH] vnc: added initial websockets support Tim Hardeck
2012-11-16 15:13 ` Tim Hardeck
2012-11-18  9:31 ` Stefan Hajnoczi
2012-11-18 23:29   ` Tim Hardeck
2012-11-19  8:56     ` Gerd Hoffmann
2012-11-19 10:09       ` Tim Hardeck
2012-11-19  9:07     ` Stefan Hajnoczi
2012-11-19 10:00       ` Tim Hardeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).