Small subset of the Ocamlnet's netstring library