]> git.proxmox.com Git - mirror_novnc.git/commit - include/rfb.js
rfb.js: rQwait, cuttext simplification.
authorJoel Martin <github@martintribe.org>
Fri, 1 Oct 2010 16:50:22 +0000 (11:50 -0500)
committerJoel Martin <github@martintribe.org>
Fri, 1 Oct 2010 16:50:22 +0000 (11:50 -0500)
commit60440cee1536a22bc01e1036f47c53bffd368c48
treee77bef4b5bada9f5bd6c612aa351b946978c3f3d
parenta99959719d72ee792fb8b576d04fad173046355e
rfb.js: rQwait, cuttext simplification.

- rQwait checks the receive queue to see if there is enough data to
  satisfy the following request. If not it returns true (which is
  almost always translated into an immediate return false by the
  caller).

- rQwait is called quite a bit and this generally allows 4 lines to
  become 1 line where it is called.

- rQwait allows simplification of cuttext processing. No global
  tracking needed anymore.

Overall, about 60 lines less code.
include/rfb.js