a minimal name server, written as an exercise in C++