A nihilistic stats server written as part of reading Learn C the Hard Way.
It's a toy, bugs galore.
To compile the server, do:
To compile a debuggable version of the server, do:
to clean up things.
This was written on an OpenBSD machine. There might be issues compiling this one other systems.
To start this server, do:
It'll be listening on port 7899.
You can connect as a client to the server via
nc 127.0.0.1 7899
/create NAME /sample NAME /mean NAME /dump NAME /list /store NAME /load NAME ANOTHER_NAME
/store command stores
NAME in a persistent database on the disk.
/load command loads the
NAME from the persistent database into
memory at ANOTHER_NAME.