1. 05 Feb, 2011 1 commit
  2. 03 Feb, 2011 1 commit
    • Joel Martin's avatar
      Add logo, favicon. · 159ad55d
      Joel Martin authored
      Thanks to Michael Sersen for creating images/Logo.svg.
      
      - Add images directory with original SVG logo, favicon, and some
        derivative PNGs of the logo for different purpose.
      
      - Note that license on images/* is CC BY-SA.
      
      - Add utils/img2js.py to take an image and generate a base64 encoded
        data URI string.
      
      - Add base64 encoded data URI screen logo to display in canvas when
        disconnected.
      159ad55d
  3. 31 Jan, 2011 1 commit
    • Joel Martin's avatar
      IE9 fixes. Works but slow. API change. · 0981845e
      Joel Martin authored
      API change: changed include path variable from VNC_uri_prefix to
      URI_INCLUDE since websock.js uses the variable and websock.js is no
      longer just for noVNC (i.e. websockify is really the canonical
      location for websock.js).
      
      Changes to get web-socket-js to work. Right now it's a hack to get
      around: https://github.com/gimite/web-socket-js/issues#issue/41. The
      hack is to disable caching of the flash objects by appending
      "?" + Math.random() to the end of the flash object path (but only when
      using IE).
      0981845e
  4. 17 Jan, 2011 1 commit
  5. 12 Jan, 2011 1 commit
    • Joel Martin's avatar
      wsproxy, wstelnet: wrap command, WS telnet client. · f2538f33
      Joel Martin authored
      wswrapper:
      
          Getting the wswrapper.c LD_PRELOAD model working has turned out to
          involve too many dark corners of the glibc/POSIX file descriptor
          space. I realized that 95% of what I want can be accomplished by
          adding a "wrap command" mode to wsproxy.
      
          The code is still there for now, but consider it experimental at
          best. Minor fix to dup2 and add dup and dup3 logging.
      
      wsproxy Wrap Command:
      
          In wsproxy wrap command mode, a command line is specified instead
          of a target address and port. wsproxy then uses a much simpler
          LD_PRELOAD library, rebind.so, to move intercept any bind() system
          calls made by the program. If the bind() call is for the wsproxy
          listen port number then the real bind() system call is issued for
          an alternate (free high) port on loopback/localhost.  wsproxy then
          forwards from the listen address/port to the moved port.
      
          The --wrap-mode argument takes three options that determine the
          behavior of wsproxy when the wrapped command returns an exit code
          (exit or daemonizing): ignore, exit, respawn.
      
          For example, this runs vncserver on turns port 5901 into
          a WebSockets port (rebind.so must be built first):
      
              ./utils/wsproxy.py --wrap-mode=ignore 5901 -- vncserver :1
      
          The vncserver command backgrounds itself so the wrap mode is set
          to "ignore" so that wsproxy keeps running even after it receives
          an exit code from vncserver.
      
      wstelnet:
      
          To demonstrate the wrap command mode, I added WebSockets telnet
          client.
      
          For example, this runs telnetd (krb5-telnetd) on turns port 2023
          into a WebSockets port (using "respawn" mode since telnetd exits
          after each connection closes):
      
              sudo ./utils/wsproxy.py --wrap-mode=respawn 2023 -- telnetd -debug 2023
      
          Then the utils/wstelnet.html page can be used to connect to the
          telnetd server on port 2023. The telnet client includes VT100.js
          (from http://code.google.com/p/sshconsole) which handles the
          terminal emulation and rendering.
      
      rebind:
      
          The rebind LD_PRELOAD library is used by wsproxy in wrap command
          mode to intercept bind() system calls and move the port to
          a different port on loopback/localhost. The rebind.so library can
          be built by running make in the utils directory.
      
          The rebind library can be used separately from wsproxy by setting
          the REBIND_OLD_PORT and REBIND_NEW_PORT environment variables
          prior to executing a command. For example:
      
              export export REBIND_PORT_OLD="23"
              export export REBIND_PORT_NEW="65023"
              LD_PRELOAD=./rebind.so telnetd -debug 23
      
          Alternately, the rebind script does the same thing:
      
              rebind 23 65023 telnetd -debug 23
      
      Other changes/notes:
      
      - wsproxy no longer daemonizes by default. Remove -f/--foreground
        option and add -D/--deamon option.
      
      - When wsproxy is used to wrap a command in "respawn" mode, the
        command will not be respawn more often than 3 times within 10
        seconds.
      
      - Move getKeysym routine out of Canvas object so that it can be called
        directly.
      f2538f33
  6. 30 Dec, 2010 1 commit
  7. 24 Oct, 2010 1 commit
  8. 08 Sep, 2010 1 commit
  9. 01 Sep, 2010 1 commit
  10. 27 Aug, 2010 1 commit
    • Joel Martin's avatar
      Remove psuedo-UTF8 encoding. · 55dee432
      Joel Martin authored
      It's less efficient on average that base64 (150% vs 133%). It's
      non-standard (0 shifted to 256 before encoding). And I rarely use it.
      55dee432
  11. 03 Aug, 2010 1 commit
  12. 29 Jul, 2010 1 commit
  13. 22 Jul, 2010 1 commit
    • Joel Martin's avatar
      API changes. Client cursor and settings menu. · da6dd893
      Joel Martin authored
      The following API changes may affect integrators:
      
          - Settings have been moved out of the RFB.connect() call. Each
            setting now has it's own setter function: setEncrypt, setBase64,
            setTrueColor, setCursor.
      
          - Encrypt and cursor settings now default to on.
      
          - CSS changes:
              - VNC_status_bar for input buttons switched to a element class.
      
              - VNC_buttons split into VNC_buttons_right and
                VNC_buttons_left
      
              - New id styles for VNC_settings_menu and VNC_setting
      
      Note: the encrypt, true_color and cursor, logging setting can all be
        set on load using query string variables (in addition to host, port
        and password).
      
      Client cursor (cursor pseudo-encoding) support has been polished and
      activated.
      
      The RFB settings are now presented as radio button list items in
      a drop-down "Settings" menu when using the default controls.
      
      Also, in the settings menu is the ability to select between alternate
      style-sheets.
      
      Cookie and stylesheet selection support added to util.js.
      da6dd893
  14. 20 Jul, 2010 1 commit
    • Joel Martin's avatar
      Add Cursor pseudo-encoding support (disabled for now). · 2c2b492c
      Joel Martin authored
      To change the appearance of the cursor, we use the CSS cursor style
      and set the url to a data URI scheme. The image data sent via the
      cursor pseudo-encoding has to be encoded to a CUR format file before
      being used in the data URI.
      
      During Canvas initialization we try and set a simple cursor to see if
      the browser has support. Opera is missing support for data URI scheme
      in cursor URLs.
      
      Disabled for now until we have a better way of specifying settings
      overall (too many settings for control bar now).
      2c2b492c
  15. 05 Jul, 2010 1 commit
  16. 02 Jul, 2010 2 commits
  17. 01 Jul, 2010 3 commits
    • Joel Martin's avatar
      Opera fixes and big Opera performance boost. · bc8e3d4d
      Joel Martin authored
      Add message/state pollling in web-socket-js. Since Opera tends to drop
      message events, we can dramatically increase performance by polling
      every now for message event data.
      
      Also, add more direct calls to update readyState so that it's not
      missed when Opera drops events.
      bc8e3d4d
    • Joel Martin's avatar
      Opera works! Fix message event drops/reorders. · a93c9555
      Joel Martin authored
      Instead of relying on FABridge AS -> JS event delivery, we just use
      the events to notify JS of pending data. The message handler then
      calls the AS readSocketData routine which sends back an array of
      the pending WebSocket frames.
      
      There is still a minor bug somewhere that happens after the first
      connect where the web-socket-js throws an "INVALID_STATE_ERR: Web
      Socket connection has not been established". But, Opera is now usable
      and we should be able to drop the packet sequence numbering and
      re-ordering code.
      
      Another minor issue to better support Opera is to move JS script
      includes to the <head> of the page instead of after the body.
      a93c9555
    • Joel Martin's avatar
      Update C proxy to WS protocol version 76. · 1eba7b42
      Joel Martin authored
      Pull in LGPL md5.c and md5.h files (written by Ulrich Drepper).
      
      Now both python and C version of the proxy support both protocol 75
      and protocol 76 (hybi 00).
      
      Reorganize websocket.py slightly to match websocket.c.
      1eba7b42
  18. 29 Jun, 2010 1 commit
  19. 24 Jun, 2010 4 commits
  20. 17 Jun, 2010 1 commit
  21. 16 Jun, 2010 2 commits
  22. 15 Jun, 2010 1 commit
  23. 13 Jun, 2010 1 commit
  24. 03 Jun, 2010 1 commit
  25. 26 May, 2010 1 commit
    • Joel Martin's avatar
      Change license to LGPL-3 and add some implementation notes. · af6b17ce
      Joel Martin authored
      The purpose of the code is to be incorporated into other web projects
      (whether those are free or not). AGPL prevents combination with other
      HTML and javascript that is under a weaker (or proprietary) license.
      Better would be a lesser AGPL, but there is not GNU standard for that.
      So LGPL-3 meets most of my requirements. If somebody modifies the
      actual client code and conveys it, then they must release the changes
      under LGPL-3 also.
      
      Add some implementation notes in docs/notes.
      af6b17ce
  26. 01 May, 2010 1 commit
  27. 30 Apr, 2010 1 commit
    • Joel Martin's avatar
      Support for SSL/TLS ('wss://') on both sides. · adfe6ac1
      Joel Martin authored
      On the client side, this adds the as3crypto library to web-socket-js
      so that the WebSocket 'wss://' scheme is supported which is WebSocket
      over SSL/TLS.
      
      Couple of downsides to the fall-back method:
      
          - This balloons the size of the web-socket-js object from about 12K to 172K.
      
          - Getting it working required disabling RFC2718 web proxy support
            in web-socket-js.
      
          - It makes the web-socket-js fallback even slower with the
            encryption overhead.
      
      The server side (wsproxy.py) uses python SSL support. The proxy
      automatically detects the type of incoming connection whether flash
      policy request, SSL/TLS handshake ('wss://') or plain socket
      ('ws://').
      
      Also added a check-box to the web page to enable/disabled 'wss://'
      encryption.
      adfe6ac1
  28. 19 Apr, 2010 1 commit
  29. 18 Apr, 2010 3 commits
  30. 17 Apr, 2010 1 commit
    • Joel Martin's avatar
      Add web-socket-js support with packet re-ordering. · 5d8e7ec0
      Joel Martin authored
      - web-socket-js is from http://github.com/gimite/web-socket-js. It is
        a flash object that emultates WebSockets.
      
      Unfortunately, events (or packets) from the web-socket-js object can
      get re-ordered so we need to know the packet order.
      
      - So wsproxy.py prepends the sequence number of the packet when
        sending.
      
      - If the client receives packets out of order it queues them up and
        scans the queue for the sequence number it's looking for until
        things are back on track. Gross, but hey: It works!
      
      - Also, add packet sequence checking to wstest.*
      5d8e7ec0
  31. 15 Apr, 2010 1 commit