A simple tcp server framework, just for fun.