netstring framing #14

Open
creationix opened this Issue Jun 26, 2012 · 0 comments

Projects

None yet

1 participant

@creationix
Collaborator

http://en.wikipedia.org/wiki/Netstring

Except using a fixed width number (UInt32LE or something) so that the payload can be binary safe. Having a framer and deframer for this makes it easy to use any message based protocol on top of raw tcp.

https://github.com/c9/smith/blob/master/smith.js#L135-176

https://github.com/c9/smith/blob/master/smith.js#L122-133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment