you could do this with netcat and a couple
sh scripts, if you really wanted to
it's an interesting golf hole; as posed however
the bounds of how much framework can be implied is
not specified though. That would need to be part of the
challenge, for a better golf hole.