Skip to content

Commit

Permalink
a tpkt thing
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Oct 13, 2010
1 parent 69626c6 commit b2d7b9f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/tpkt.js
@@ -0,0 +1,14 @@
var Put = require('rfb/put');

module.exports = function (stream) {
return {
send : function (buf) {
Put()
.word8(3)
.word8(0)
.word16le(4 + buf.length)
.send(stream);
stream.write(buf);
}
};
};

0 comments on commit b2d7b9f

Please sign in to comment.