First RFB protocol stub implementation.

- Requires wsproxy to proxy to the VNC server.
This commit is contained in:
Joel Martin
2010-04-01 11:36:22 -05:00
parent f9d4566547
commit 65e27ddd4c
4 changed files with 537 additions and 4 deletions

38
vnc.html Normal file
View File

@@ -0,0 +1,38 @@
<html>
<body onload="draw();">
VNC Window:<br>
<canvas id="vnc" width="800" height="600">
Canvas not supported.
</canvas>
<br><br>
Debug:
<div id="debug"></div>
</body>
<script src="include/mootools.js"></script>
<script src="include/mootools-more.js"></script>
<script src="vnc.js"></script>
<script type="text/javascript">
function connect() {
debug(">> connect");
var uri = new URI(window.location);
var host = uri.getData("host");
var port = uri.getData("port");
if ((!host) || (!port)) {
debug("must set host and port");
return;
}
init_ws(host, port);
debug("<< connect");
}
window.onload = connect();
</script>
</html>