Permalink
Browse files

initial commit

  • Loading branch information...
AndrewSwerlick committed Sep 7, 2011
0 parents commit 97c74c3a79b2b050ba12f87727b453e3359b2531
Showing with 15,964 additions and 0 deletions.
  1. +6 −0 README
  2. +41 −0 keyMap.js
  3. +1 −0 node_modules/node-x11
  4. +9 −0 node_modules/socket.io/.gitignore
  5. +3 −0 node_modules/socket.io/.npmignore
  6. +140 −0 node_modules/socket.io/History.md
  7. +22 −0 node_modules/socket.io/Makefile
  8. +343 −0 node_modules/socket.io/Readme.md
  9. +87 −0 node_modules/socket.io/examples/chat/app.js
  10. +83 −0 node_modules/socket.io/examples/chat/index.jade
  11. +11 −0 node_modules/socket.io/examples/chat/package.json
  12. +96 −0 node_modules/socket.io/examples/chat/public/stylesheets/mixins.styl
  13. +188 −0 node_modules/socket.io/examples/chat/public/stylesheets/style.css
  14. +118 −0 node_modules/socket.io/examples/chat/public/stylesheets/style.styl
  15. +81 −0 node_modules/socket.io/examples/irc-output/app.js
  16. +28 −0 node_modules/socket.io/examples/irc-output/index.jade
  17. +164 −0 node_modules/socket.io/examples/irc-output/irc.js
  18. +10 −0 node_modules/socket.io/examples/irc-output/package.json
  19. +69 −0 node_modules/socket.io/examples/irc-output/public/stylesheets/style.styl
  20. +8 −0 node_modules/socket.io/index.js
  21. +96 −0 node_modules/socket.io/lib/logger.js
  22. +1,026 −0 node_modules/socket.io/lib/manager.js
  23. +350 −0 node_modules/socket.io/lib/namespace.js
  24. +243 −0 node_modules/socket.io/lib/parser.js
  25. +128 −0 node_modules/socket.io/lib/socket.io.js
  26. +352 −0 node_modules/socket.io/lib/socket.js
  27. +98 −0 node_modules/socket.io/lib/store.js
  28. +143 −0 node_modules/socket.io/lib/stores/memory.js
  29. +250 −0 node_modules/socket.io/lib/stores/redis.js
  30. +534 −0 node_modules/socket.io/lib/transport.js
  31. +102 −0 node_modules/socket.io/lib/transports/flashsocket.js
  32. +82 −0 node_modules/socket.io/lib/transports/htmlfile.js
  33. +135 −0 node_modules/socket.io/lib/transports/http-polling.js
  34. +111 −0 node_modules/socket.io/lib/transports/http.js
  35. +12 −0 node_modules/socket.io/lib/transports/index.js
  36. +78 −0 node_modules/socket.io/lib/transports/jsonp-polling.js
  37. +33 −0 node_modules/socket.io/lib/transports/websocket.js
  38. +350 −0 node_modules/socket.io/lib/transports/websocket/default.js
  39. +465 −0 node_modules/socket.io/lib/transports/websocket/hybi-07-12.js
  40. +10 −0 node_modules/socket.io/lib/transports/websocket/index.js
  41. +72 −0 node_modules/socket.io/lib/transports/xhr-polling.js
  42. +50 −0 node_modules/socket.io/lib/util.js
  43. +30 −0 node_modules/socket.io/package.json
  44. +27 −0 node_modules/socket.io/support/node-websocket-client/LICENSE
  45. +22 −0 node_modules/socket.io/support/node-websocket-client/Makefile
  46. +41 −0 node_modules/socket.io/support/node-websocket-client/README.md
  47. +12 −0 node_modules/socket.io/support/node-websocket-client/examples/client-unix.js
  48. +10 −0 node_modules/socket.io/support/node-websocket-client/examples/client.js
  49. +13 −0 node_modules/socket.io/support/node-websocket-client/examples/server-unix.js
  50. +599 −0 node_modules/socket.io/support/node-websocket-client/lib/websocket.js
  51. +22 −0 node_modules/socket.io/support/node-websocket-client/package.json
  52. +68 −0 node_modules/socket.io/support/node-websocket-client/test/test-basic.js
  53. +43 −0 node_modules/socket.io/support/node-websocket-client/test/test-client-close.js
  54. +43 −0 node_modules/socket.io/support/node-websocket-client/test/test-readonly-attrs.js
  55. +26 −0 node_modules/socket.io/support/node-websocket-client/test/test-ready-state.js
  56. +41 −0 node_modules/socket.io/support/node-websocket-client/test/test-server-close.js
  57. +63 −0 node_modules/socket.io/support/node-websocket-client/test/test-unix-send-fd.js
  58. +46 −0 node_modules/socket.io/support/node-websocket-client/test/test-unix-sockets.js
  59. +244 −0 node_modules/socket.io/test/common.js
  60. +21 −0 node_modules/socket.io/test/fixtures/cert.crt
  61. +27 −0 node_modules/socket.io/test/fixtures/key.key
  62. +125 −0 node_modules/socket.io/test/io.test.js
  63. +54 −0 node_modules/socket.io/test/leaks/socket.leaktest.js
  64. +731 −0 node_modules/socket.io/test/manager.test.js
  65. +247 −0 node_modules/socket.io/test/namespace.test.js
  66. +356 −0 node_modules/socket.io/test/parser.test.js
  67. +15 −0 node_modules/socket.io/test/socket.js
  68. +190 −0 node_modules/socket.io/test/stores.memory.test.js
  69. +240 −0 node_modules/socket.io/test/stores.redis.test.js
  70. +168 −0 node_modules/socket.io/test/transports.flashsocket.test.js
  71. +458 −0 node_modules/socket.io/test/transports.htmlfile.test.js
  72. +770 −0 node_modules/socket.io/test/transports.jsonp-polling.test.js
  73. +271 −0 node_modules/socket.io/test/transports.websocket.hybi07-12.parser.test.js
  74. +1,771 −0 node_modules/socket.io/test/transports.websocket.test.js
  75. +2,754 −0 node_modules/socket.io/test/transports.xhr-polling.test.js
  76. +7 −0 package.json
  77. +44 −0 remote-client.js
  78. +30 −0 remote-server.js
  79. +12 −0 remote.html
  80. +34 −0 simpleServer.js
  81. +61 −0 xEventManager.js
6 README
@@ -0,0 +1,6 @@
+node-remote is a simple web server/webpage pair that allows you to remotely control the disply on the server by browsing to a webpage on any client machine. The page picks up mouse movements and keyboard presses and transmits them to the server via socket.io. Read more at
+
+RUNNING THE SERVER
+Start the server with the command node remote-server.js. Note you have to run this command from within the display that you want to be controlling, not a remote session.
+
+Then just have your client browse to port 8000 on the server. Note the client needs to support websockets, so either chrome or firefox is your best bet.
@@ -0,0 +1,41 @@
+ var staticMap = {
+ '18': 'LT',
+ '8' : 'BackSpace',
+ '20' : 'CAPS_LOCK',
+ '188' : ',',
+ // COMMAND: 91,
+ // COMMAND_LEFT: 91, // COMMAND
+ // COMMAND_RIGHT: 93,
+ '17' : 'Ctrl',
+ '46' : 'Delete',
+ '40' : 'Down',
+ '35' : 'End',
+ '13' : 'Return',
+ '27' : 'Escape',
+ '36' : 'Home',
+ '45' : 'Insert',
+ '37' : 'Left',
+ //MENU: 93, // COMMAND_RIGHT
+ // NUMPAD_ADD: 107,
+ // NUMPAD_DECIMAL: 110,
+ // NUMPAD_DIVIDE: 111,
+ // NUMPAD_ENTER: 108,
+ // NUMPAD_MULTIPLY: 106,
+ // NUMPAD_SUBTRACT: 109,
+ '34' : 'Page_Down',
+ '33' : 'Page_up',
+ '190' : 'period' ,
+ '39' : 'Right',
+ '16' :'Shift',
+ '32' : 'space',
+ '9' : 'tab',
+ '38' : 'up'
+ // WINDOWS: 91
+}
+
+module.exports.mapKey = function(keyCode){
+ key = staticMap[keyCode];
+ if (key== undefined)
+ key = String.fromCharCode(keyCode);
+ return key;
+}
Submodule node-x11 added at 0a0979

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 97c74c3

Please sign in to comment.