chickadee » netstring

Outdated egg!

This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for the CHICKEN 5 version of this egg, if it exists.

If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.



This egg provides porocedures for reading and writing so called netstrings.


Moritz Heidkamp


netstring-write str #!optional portprocedure

Writes str to port ((current-output-port) by default).

netstring-read #!optional portprocedure

Reads a netstring from port ((current-input-port) by default) and returns its interpretation.

string->netstring strprocedure

Converts str to a netstring.

netstring->string nsprocedure

Returns the interpretation of ns.

Contents »