Introduction
A netstring is a self-delimiting way of writing a string of bytes, defined by D. J. Bernstein. It is used as a building block in protocols and files. It has no standard file extension; this page is listed under its name.
Structure
A netstring is the length in ASCII decimal digits, with no extra leading zeros, a
colon, that many bytes, and a comma. hello world! is written
12:hello world!, and the empty string 0:,.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the rules for nesting and for reading netstrings safely, which the specification discusses.
- Viewer: the site has no viewer for this format.
Links
Reference
- Netstrings – Bernstein’s Internet-Draft